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

Unified Diff: chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js

Issue 2151713002: Less strict checked state changes and introduce disabled state for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: m Created 4 years, 5 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: chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js b/chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js
index b4d743d68f90002817bbb7df88d8d2dc64329a99..3ff91b08f310da7a0cb3cd454b629c8d623aebf5 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/tabs/sanity_check.js
@@ -19,7 +19,7 @@ var allTests = [
var state = RemoveUntestedStates(rootNode.state);
assertEq(
- {enabled: true, focusable: true, readOnly: true, focused: true},
+ {focusable: true, readOnly: true, focused: true},
state);
var children = rootNode.children;
@@ -28,23 +28,23 @@ var allTests = [
var body = children[0];
assertEq('body', body.htmlTag);
state = RemoveUntestedStates(body.state);
- assertEq({enabled: true, readOnly: true}, state);
+ assertEq({readOnly: true}, state);
var contentChildren = body.children;
assertEq(3, contentChildren.length);
var okButton = contentChildren[0];
assertEq('Ok', okButton.name);
state = RemoveUntestedStates(okButton.state);
- assertEq({enabled: true, focusable: true, readOnly: true}, state);
+ assertEq({focusable: true, readOnly: true}, state);
var userNameInput = contentChildren[1];
assertEq('Username', userNameInput.name);
state = RemoveUntestedStates(userNameInput.state);
- assertEq({editable: true, enabled: true, focusable: true}, state);
+ assertEq({editable: true, focusable: true}, state);
var cancelButton = contentChildren[2];
assertEq('Cancel',
cancelButton.name);
state = RemoveUntestedStates(cancelButton.state);
- assertEq({enabled: true, focusable: true, readOnly: true}, state);
+ assertEq({focusable: true, readOnly: true}, state);
// Traversal.
assertEq(undefined, rootNode.parent);
« no previous file with comments | « chrome/test/data/extensions/api_test/automation/tests/tabs/find.js ('k') | components/pdf/renderer/pdf_accessibility_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698