Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(911)

Unified Diff: third_party/polymer/components/iron-range-behavior/test/basic.html

Issue 2113853002: Run bower update (Closed) Base URL: https://github.com/catapult-project/catapult@polymer10-migration
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/components/iron-range-behavior/test/basic.html
diff --git a/third_party/polymer/components/iron-range-behavior/test/basic.html b/third_party/polymer/components/iron-range-behavior/test/basic.html
index 37e4317dcca418e175121d2c64020c314c9175e8..9a7e41dc5ec4d6f5d2386335227f32ed3c11bd81 100644
--- a/third_party/polymer/components/iron-range-behavior/test/basic.html
+++ b/third_party/polymer/components/iron-range-behavior/test/basic.html
@@ -103,6 +103,33 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
});
});
+ test('set large step', function(done) {
+ // PolymerElements/paper-slider#135
+ range.min = 0;
+ range.max = 2625;
+ range.step = 875;
+ range.value = 875;
+ flush(function() {
+ assert.equal(range.value, 875);
+ done();
+ });
+ });
+
+ test('set step with min', function(done) {
+ range.min = -0.9;
+ range.max = 1.1;
+ range.step = 0.5;
+ range.value = -0.5;
+ flush(function() {
+ assert.equal(range.value, -0.4);
+ range.value = 0.7;
+ flush(function() {
+ assert.equal(range.value, 0.6);
+ done();
+ });
+ });
+ });
+
test('odd values', function(done) {
range.min = 1;
range.max = 7;

Powered by Google App Engine
This is Rietveld 408576698