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

Unified Diff: lib/src/paper-tooltip/test/basic.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/paper-tooltip/paper-tooltip.html ('k') | lib/src/paper-tooltip/test/test-button.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/paper-tooltip/test/basic.html
diff --git a/lib/src/paper-tooltip/test/basic.html b/lib/src/paper-tooltip/test/basic.html
index e05d3b7c7a719f9646cc7814d25bea98e49083dc..fe72fbb196a98971bd9f4de492bf44c288c2eeb6 100644
--- a/lib/src/paper-tooltip/test/basic.html
+++ b/lib/src/paper-tooltip/test/basic.html
@@ -51,7 +51,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<template>
<div>
<div id="target"></div>
- <paper-tooltip for="target">Tooltip text</paper-tooltip>
+ <paper-tooltip for="target" animation-delay="0">Tooltip text</paper-tooltip>
</div>
</template>
</test-fixture>
@@ -306,7 +306,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
var actualTooltip = Polymer.dom(tooltip.root).querySelector('#tooltip');
assert.isTrue(isHidden(actualTooltip));
- MockInteractions.focus(target);
+ // Simulate but don't actually run the entry animation.
+ tooltip.toggleClass('hidden', false, actualTooltip);
+ tooltip._showing = true;
assert.isFalse(isHidden(actualTooltip));
tooltip.addEventListener('neon-animation-finish', function() {
@@ -346,7 +348,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
setup(function() {
f = fixture('custom');
target = f.$.button;
- tooltip = f.$.tooltip;
+ tooltip = f.$.buttonTooltip;
});
test('tooltip is shown when target is focused', function() {
@@ -391,6 +393,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
assert.isTrue(tooltip.getAttribute('role') == 'tooltip');
});
+
+ a11ySuite('basic');
+ a11ySuite('fitted');
+ a11ySuite('no-text');
+ a11ySuite('dynamic');
+ a11ySuite('custom');
});
</script>
</body>
« no previous file with comments | « lib/src/paper-tooltip/paper-tooltip.html ('k') | lib/src/paper-tooltip/test/test-button.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698