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

Unified Diff: lib/src/iron-behaviors/test/active-state.html

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 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
« no previous file with comments | « lib/src/iron-behaviors/iron-button-state.html ('k') | lib/src/iron-collapse/iron-collapse.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/iron-behaviors/test/active-state.html
diff --git a/lib/src/iron-behaviors/test/active-state.html b/lib/src/iron-behaviors/test/active-state.html
index 0fa6fdcf89c37ce13b661bcf1cab6d13403ef950..5a9447689ca8351bb065f0f91f37e352f695c71a 100644
--- a/lib/src/iron-behaviors/test/active-state.html
+++ b/lib/src/iron-behaviors/test/active-state.html
@@ -41,20 +41,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
activeTarget = fixture('TrivialActiveState');
});
- suite('non-primary pointer input source', function() {
- test('does not cause state to change', function() {
- var rightClickMouseEvent = new CustomEvent('mousedown');
- rightClickMouseEvent.buttons = 2;
- activeTarget.dispatchEvent(rightClickMouseEvent);
- expect(activeTarget.pressed).to.be.equal(false);
- });
- });
-
suite('active state with toggles attribute', function() {
setup(function() {
activeTarget = fixture('ToggleActiveState');
});
+ suite('when down', function() {
+ test('is pressed', function() {
+ MockInteractions.down(activeTarget);
+ expect(activeTarget.hasAttribute('pressed')).to.be.eql(true);
+ });
+ });
+
suite('when clicked', function() {
test('is activated', function(done) {
MockInteractions.downAndUp(activeTarget, function() {
« no previous file with comments | « lib/src/iron-behaviors/iron-button-state.html ('k') | lib/src/iron-collapse/iron-collapse.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698