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

Side by Side Diff: chrome/test/data/extensions/api_test/automation/tests/tabs/attributes.js

Issue 2857413002: htmlTag was missing from the list of stringAttributes for an automationNode (Closed)
Patch Set: Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/automation/sites/attributes.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var ActiveDescendantAttribute = [ 'activeDescendant' ]; 5 var ActiveDescendantAttribute = [ 'activeDescendant' ];
6 var LinkAttributes = [ 'url' ]; 6 var LinkAttributes = [ 'url' ];
7 var DocumentAttributes = [ 'docUrl', 7 var DocumentAttributes = [ 'docUrl',
8 'docTitle', 8 'docTitle',
9 'docLoaded', 9 'docLoaded',
10 'docLoadingProgress' ]; 10 'docLoadingProgress' ];
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 assertTrue(Boolean(checkTest3)); 293 assertTrue(Boolean(checkTest3));
294 assertEq(checkTest3.checked, 'mixed'); 294 assertEq(checkTest3.checked, 'mixed');
295 295
296 // Uncheckable nodes have a checked attribute of undefined 296 // Uncheckable nodes have a checked attribute of undefined
297 var checkTest4 = rootNode.find({ attributes: { name: 'check-test-4' } }); 297 var checkTest4 = rootNode.find({ attributes: { name: 'check-test-4' } });
298 assertTrue(Boolean(checkTest4)); 298 assertTrue(Boolean(checkTest4));
299 assertEq(checkTest4.checked, undefined); 299 assertEq(checkTest4.checked, undefined);
300 300
301 chrome.test.succeed(); 301 chrome.test.succeed();
302 }, 302 },
303
304 function testHtmlTagAttribute() {
305 var figure = rootNode.find({ attributes: { htmlTag: 'figure' } });
306 assertTrue(Boolean(figure));
307 assertEq(figure.htmlTag, 'figure');
308
309 chrome.test.succeed();
310 }
303 ]; 311 ];
304 312
305 setUpAndRunTests(allTests, 'attributes.html'); 313 setUpAndRunTests(allTests, 'attributes.html');
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/automation/sites/attributes.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698