Index: polymer_1.0.4/bower_components/paper-progress/test/basic.html |
diff --git a/polymer_0.5.0/bower_components/core-range/test/basic.html b/polymer_1.0.4/bower_components/paper-progress/test/basic.html |
similarity index 70% |
copy from polymer_0.5.0/bower_components/core-range/test/basic.html |
copy to polymer_1.0.4/bower_components/paper-progress/test/basic.html |
index e14ad3bd85adae036a0cdb48f2435955d7a438d8..dddb6efff6787cafeab0b85dea1ac538be87e2fb 100644 |
--- a/polymer_0.5.0/bower_components/core-range/test/basic.html |
+++ b/polymer_1.0.4/bower_components/paper-progress/test/basic.html |
@@ -1,34 +1,43 @@ |
<!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>paper-progress test</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="../paper-progress.html"> |
+ <link rel="import" href="../../test-fixture/test-fixture.html"> |
</head> |
<body> |
- <core-range></core-range> |
+ |
+ <test-fixture id="trivialProgress"> |
+ <template> |
+ <paper-progress></paper-progress> |
+ </template> |
+ </test-fixture> |
<script> |
+ suite('<paper-progress>', function() { |
+ var range; |
- var range = document.querySelector('core-range'); |
+ setup(function() { |
+ range = fixture('trivialProgress'); |
+ }); |
- suite('basic', function() { |
- |
test('check default', function() { |
assert.equal(range.min, 0); |
assert.equal(range.max, 100); |
@@ -47,7 +56,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 +65,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 +74,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN |
done(); |
}); |
}); |
- |
+ |
+ test('test secondary ratio', function(done) { |
+ range.max = 10; |
+ range.secondaryProgress = 5; |
+ asyncPlatformFlush(function() { |
+ assert.equal(range.secondaryRatio, 50); |
+ done(); |
+ }); |
+ }); |
+ |
test('set min', function(done) { |
range.min = 10 |
range.max = 50; |
@@ -79,7 +97,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; |