| Index: polymer_1.0.4/bower_components/iron-range-behavior/test/basic.html
|
| diff --git a/polymer_0.5.4/bower_components/core-range/test/basic.html b/polymer_1.0.4/bower_components/iron-range-behavior/test/basic.html
|
| similarity index 73%
|
| copy from polymer_0.5.4/bower_components/core-range/test/basic.html
|
| copy to polymer_1.0.4/bower_components/iron-range-behavior/test/basic.html
|
| index e14ad3bd85adae036a0cdb48f2435955d7a438d8..cee33a339c6b28e8da9cf2dac05c4fe1ce10a4ce 100644
|
| --- a/polymer_0.5.4/bower_components/core-range/test/basic.html
|
| +++ b/polymer_1.0.4/bower_components/iron-range-behavior/test/basic.html
|
| @@ -1,34 +1,50 @@
|
| <!doctype html>
|
| <!--
|
| -Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
| -This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
| -The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
| -The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
| +@license
|
| +Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
| +This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE
|
| +The complete set of authors may be found at http://polymer.github.io/AUTHORS
|
| +The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS
|
| Code distributed by Google as part of the polymer project is also
|
| -subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
| +subject to an additional IP rights grant found at http://polymer.github.io/PATENTS
|
| -->
|
| <html>
|
| <head>
|
| <meta charset="UTF-8">
|
| - <title>core-range-basic</title>
|
| + <title>iron-range-behavior</title>
|
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
|
|
| - <script src="../../webcomponentsjs/webcomponents.js"></script>
|
| + <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
| <script src="../../web-component-tester/browser.js"></script>
|
| + <script src="../../test-fixture/test-fixture-mocha.js"></script>
|
|
|
| - <link rel="import" href="../core-range.html">
|
| -
|
| + <link rel="import" href="../iron-range-behavior.html">
|
| + <link rel="import" href="../../test-fixture/test-fixture.html">
|
| </head>
|
| <body>
|
|
|
| - <core-range></core-range>
|
| + <script>
|
| + Polymer({
|
| + is: 'x-progressbar',
|
| +
|
| + behaviors: [Polymer.IronRangeBehavior]
|
| + });
|
| + </script>
|
| +
|
| + <test-fixture id="trivialRange">
|
| + <template>
|
| + <x-progressbar></x-progressbar>
|
| + </template>
|
| + </test-fixture>
|
|
|
| <script>
|
| + suite('<x-progressbar>', function() {
|
| + var range;
|
|
|
| - var range = document.querySelector('core-range');
|
| + setup(function() {
|
| + range = fixture('trivialRange');
|
| + });
|
|
|
| - suite('basic', function() {
|
| -
|
| test('check default', function() {
|
| assert.equal(range.min, 0);
|
| assert.equal(range.max, 100);
|
| @@ -47,7 +63,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| });
|
| });
|
| });
|
| -
|
| +
|
| test('set max', function(done) {
|
| range.max = 10;
|
| range.value = 11;
|
| @@ -56,7 +72,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| done();
|
| });
|
| });
|
| -
|
| +
|
| test('test ratio', function(done) {
|
| range.max = 10;
|
| range.value = 5;
|
| @@ -65,7 +81,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| done();
|
| });
|
| });
|
| -
|
| +
|
| test('set min', function(done) {
|
| range.min = 10
|
| range.max = 50;
|
| @@ -79,7 +95,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| });
|
| });
|
| });
|
| -
|
| +
|
| test('set step', function(done) {
|
| range.min = 0;
|
| range.max = 10;
|
|
|