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

Unified Diff: third_party/polymer/components/iron-menu-behavior/test/iron-menu-behavior.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-menu-behavior/test/iron-menu-behavior.html
diff --git a/third_party/polymer/components/iron-menu-behavior/test/iron-menu-behavior.html b/third_party/polymer/components/iron-menu-behavior/test/iron-menu-behavior.html
index 0af6ef072951e826fcd02d2b5ab125d3a625d2de..07c3f92ed3fba03e1d21f4d766517ba1ef454693 100644
--- a/third_party/polymer/components/iron-menu-behavior/test/iron-menu-behavior.html
+++ b/third_party/polymer/components/iron-menu-behavior/test/iron-menu-behavior.html
@@ -544,31 +544,31 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
test('A disabled menu will not have a tab index.', function() {
var menu = fixture('countries');
- assert.equal(menu.tabIndex, 0);
+ assert.equal(menu.getAttribute('tabindex'), '0');
menu.disabled = true;
- assert.equal(menu.tabIndex, -1);
+ assert.equal(menu.getAttribute('tabindex'), null);
menu.disabled = false;
- assert.equal(menu.tabIndex, 0);
+ assert.equal(menu.getAttribute('tabindex'), '0');
});
test('Updated tab index of disabled element should remain.', function() {
var menu = fixture('countries');
- assert.equal(menu.tabIndex, 0);
+ assert.equal(menu.getAttribute('tabindex'), '0');
menu.disabled = true;
- assert.equal(menu.tabIndex, -1);
+ assert.equal(menu.getAttribute('tabindex'), null);
menu.setAttribute('tabindex', 15);
- assert.equal(menu.tabIndex, 15);
+ assert.equal(menu.getAttribute('tabindex'), '15');
menu.disabled = false;
- assert.equal(menu.tabIndex, 15);
+ assert.equal(menu.getAttribute('tabindex'), '15');
});
test('A disabled menu will regain its non-zero tab index when re-enabled.', function() {
var menu = fixture('nonzero-tabindex');
- assert.equal(menu.tabIndex, 32);
+ assert.equal(menu.getAttribute('tabindex'), '32');
menu.disabled = true;
- assert.equal(menu.tabIndex, -1);
+ assert.equal(menu.getAttribute('tabindex'), null);
menu.disabled = false;
- assert.equal(menu.tabIndex, 32);
+ assert.equal(menu.getAttribute('tabindex'), '32');
});
test('`tabIndex` properties of all items are updated when items change', function(done) {
« no previous file with comments | « third_party/polymer/components/iron-menu-behavior/bower.json ('k') | third_party/polymer/components/iron-meta/.bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698