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

Unified Diff: third_party/polymer/components/iron-behaviors/test/active-state.html

Issue 3010683002: Update Polymer components. (Closed)
Patch Set: Rebase Created 3 years, 4 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-behaviors/test/active-state.html
diff --git a/third_party/polymer/components/iron-behaviors/test/active-state.html b/third_party/polymer/components/iron-behaviors/test/active-state.html
index 8735aafba0bbcf53b6e84a7d585cf157781c0955..e1ed4791fda7359b5464e8b3c846c39ac759882e 100644
--- a/third_party/polymer/components/iron-behaviors/test/active-state.html
+++ b/third_party/polymer/components/iron-behaviors/test/active-state.html
@@ -125,6 +125,16 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
});
});
});
+
+ suite('on blur', function() {
+ test('the pressed property becomes false', function() {
+ MockInteractions.focus(activeTarget);
+ MockInteractions.down(activeTarget);
+ expect(activeTarget.hasAttribute('pressed')).to.be.eql(true);
+ MockInteractions.blur(activeTarget);
+ expect(activeTarget.hasAttribute('pressed')).to.be.eql(false);
+ });
+ });
});
suite('without toggles attribute', function() {

Powered by Google App Engine
This is Rietveld 408576698