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

Side by Side Diff: LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js

Issue 22875013: Make several DOMImplementation API arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix createDocument() args Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/zoom-on-unattached.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 description("Test to check if setBaseAndExtent guard node with null owner docume nt (Bug 31680)"); 1 description("Test to check if setBaseAndExtent guard node with null owner docume nt (Bug 31680)");
2 2
3 var sel = window.getSelection(); 3 var sel = window.getSelection();
4 var docType = document.implementation.createDocumentType('c'); 4 var docType = document.implementation.createDocumentType('c', null, null);
5 5
6 sel.setBaseAndExtent(docType); 6 sel.setBaseAndExtent(docType);
7 shouldBeNull("sel.anchorNode"); 7 shouldBeNull("sel.anchorNode");
8 8
9 sel.setBaseAndExtent(null, 0, docType, 0); 9 sel.setBaseAndExtent(null, 0, docType, 0);
10 shouldBeNull("sel.anchorNode"); 10 shouldBeNull("sel.anchorNode");
11 11
12 sel.collapse(docType); 12 sel.collapse(docType);
13 shouldBeNull("sel.anchorNode"); 13 shouldBeNull("sel.anchorNode");
14 14
15 sel.selectAllChildren(docType); 15 sel.selectAllChildren(docType);
16 shouldBeNull("sel.anchorNode"); 16 shouldBeNull("sel.anchorNode");
17 17
18 sel.extend(docType, 0); 18 sel.extend(docType, 0);
19 shouldBeNull("sel.anchorNode"); 19 shouldBeNull("sel.anchorNode");
20 20
21 sel.containsNode(docType); 21 sel.containsNode(docType);
22 shouldBeNull("sel.anchorNode"); 22 shouldBeNull("sel.anchorNode");
23 23
24 shouldBeFalse("sel.containsNode(docType)"); 24 shouldBeFalse("sel.containsNode(docType)");
25 25
26 var successfullyParsed = true; 26 var successfullyParsed = true;
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/zoom-on-unattached.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698