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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/interfaces.html

Issue 1854003004: Import web-platform-tests@5a8700479d98852455bee6117558897867eb278a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>DOM IDL tests</title> 3 <title>DOM IDL tests</title>
4 <script src=../../../resources/testharness.js></script> 4 <script src=../../../resources/testharness.js></script>
5 <script src=../../../resources/testharnessreport.js></script> 5 <script src=../../../resources/testharnessreport.js></script>
6 <script src=../../../resources/WebIDLParser.js></script> 6 <script src=../../../resources/WebIDLParser.js></script>
7 <script src=../../../resources/idlharness.js></script> 7 <script src=../../../resources/idlharness.js></script>
8 8
9 <h1>DOM IDL tests</h1> 9 <h1>DOM IDL tests</h1>
10 <div id=log></div> 10 <div id=log></div>
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 const unsigned short DOCUMENT_NODE = 9; 173 const unsigned short DOCUMENT_NODE = 9;
174 const unsigned short DOCUMENT_TYPE_NODE = 10; 174 const unsigned short DOCUMENT_TYPE_NODE = 10;
175 const unsigned short DOCUMENT_FRAGMENT_NODE = 11; 175 const unsigned short DOCUMENT_FRAGMENT_NODE = 11;
176 const unsigned short NOTATION_NODE = 12; // historical 176 const unsigned short NOTATION_NODE = 12; // historical
177 readonly attribute unsigned short nodeType; 177 readonly attribute unsigned short nodeType;
178 readonly attribute DOMString nodeName; 178 readonly attribute DOMString nodeName;
179 179
180 readonly attribute DOMString? baseURI; 180 readonly attribute DOMString? baseURI;
181 181
182 readonly attribute Document? ownerDocument; 182 readonly attribute Document? ownerDocument;
183 readonly attribute Node rootNode;
183 readonly attribute Node? parentNode; 184 readonly attribute Node? parentNode;
184 readonly attribute Element? parentElement; 185 readonly attribute Element? parentElement;
185 boolean hasChildNodes(); 186 boolean hasChildNodes();
186 [SameObject] readonly attribute NodeList childNodes; 187 [SameObject] readonly attribute NodeList childNodes;
187 readonly attribute Node? firstChild; 188 readonly attribute Node? firstChild;
188 readonly attribute Node? lastChild; 189 readonly attribute Node? lastChild;
189 readonly attribute Node? previousSibling; 190 readonly attribute Node? previousSibling;
190 readonly attribute Node? nextSibling; 191 readonly attribute Node? nextSibling;
191 192
192 attribute DOMString? nodeValue; 193 attribute DOMString? nodeValue;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 readonly attribute DOMString? prefix; 281 readonly attribute DOMString? prefix;
281 readonly attribute DOMString localName; 282 readonly attribute DOMString localName;
282 readonly attribute DOMString tagName; 283 readonly attribute DOMString tagName;
283 284
284 attribute DOMString id; 285 attribute DOMString id;
285 attribute DOMString className; 286 attribute DOMString className;
286 [SameObject, PutForwards=value] readonly attribute DOMTokenList classList; 287 [SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
287 288
288 boolean hasAttributes(); 289 boolean hasAttributes();
289 [SameObject] readonly attribute NamedNodeMap attributes; 290 [SameObject] readonly attribute NamedNodeMap attributes;
291 sequence<DOMString> getAttributeNames();
290 DOMString? getAttribute(DOMString name); 292 DOMString? getAttribute(DOMString name);
291 DOMString? getAttributeNS(DOMString? namespace, DOMString localName); 293 DOMString? getAttributeNS(DOMString? namespace, DOMString localName);
292 void setAttribute(DOMString name, DOMString value); 294 void setAttribute(DOMString name, DOMString value);
293 void setAttributeNS(DOMString? namespace, DOMString name, DOMString value); 295 void setAttributeNS(DOMString? namespace, DOMString name, DOMString value);
294 void removeAttribute(DOMString name); 296 void removeAttribute(DOMString name);
295 void removeAttributeNS(DOMString? namespace, DOMString localName); 297 void removeAttributeNS(DOMString? namespace, DOMString localName);
296 boolean hasAttribute(DOMString name); 298 boolean hasAttribute(DOMString name);
297 boolean hasAttributeNS(DOMString? namespace, DOMString localName); 299 boolean hasAttributeNS(DOMString? namespace, DOMString localName);
298 300
299 Attr? getAttributeNode(DOMString name); 301 Attr? getAttributeNode(DOMString name);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 detachedRange = document.createRange(); 478 detachedRange = document.createRange();
477 detachedRange.detach(); 479 detachedRange.detach();
478 element = xmlDoc.createElementNS(null, "test"); 480 element = xmlDoc.createElementNS(null, "test");
479 element.setAttribute("bar", "baz"); 481 element.setAttribute("bar", "baz");
480 482
481 idlArray = new IdlArray(); 483 idlArray = new IdlArray();
482 idlArray.add_idls(document.querySelector("script[type=text\\/plain]").textCont ent); 484 idlArray.add_idls(document.querySelector("script[type=text\\/plain]").textCont ent);
483 idlArray.add_objects({ 485 idlArray.add_objects({
484 Event: ['document.createEvent("Event")', 'new Event("foo")'], 486 Event: ['document.createEvent("Event")', 'new Event("foo")'],
485 CustomEvent: ['new CustomEvent("foo")'], 487 CustomEvent: ['new CustomEvent("foo")'],
488 Document: ['new Document()'],
486 XMLDocument: ['xmlDoc'], 489 XMLDocument: ['xmlDoc'],
487 DOMImplementation: ['document.implementation'], 490 DOMImplementation: ['document.implementation'],
488 DocumentFragment: ['document.createDocumentFragment()'], 491 DocumentFragment: ['document.createDocumentFragment()'],
489 DocumentType: ['document.doctype'], 492 DocumentType: ['document.doctype'],
490 Element: ['element'], 493 Element: ['element'],
491 Attr: ['document.querySelector("[id]").attributes[0]'], 494 Attr: ['document.querySelector("[id]").attributes[0]'],
492 Text: ['document.createTextNode("abc")'], 495 Text: ['document.createTextNode("abc")'],
493 ProcessingInstruction: ['xmlDoc.createProcessingInstruction("abc", "def")'], 496 ProcessingInstruction: ['xmlDoc.createProcessingInstruction("abc", "def")'],
494 Comment: ['document.createComment("abc")'], 497 Comment: ['document.createComment("abc")'],
495 Range: ['document.createRange()', 'detachedRange'], 498 Range: ['document.createRange()', 'detachedRange'],
496 NodeIterator: ['document.createNodeIterator(document.body, NodeFilter.SHOW_A LL, null, false)'], 499 NodeIterator: ['document.createNodeIterator(document.body, NodeFilter.SHOW_A LL, null, false)'],
497 TreeWalker: ['document.createTreeWalker(document.body, NodeFilter.SHOW_ALL, null, false)'], 500 TreeWalker: ['document.createTreeWalker(document.body, NodeFilter.SHOW_ALL, null, false)'],
498 NodeList: ['document.querySelectorAll("script")'], 501 NodeList: ['document.querySelectorAll("script")'],
499 HTMLCollection: ['document.body.children'], 502 HTMLCollection: ['document.body.children'],
500 DOMTokenList: ['document.body.classList'], 503 DOMTokenList: ['document.body.classList'],
501 }); 504 });
502 }); 505 });
503 idlArray.test(); 506 idlArray.test();
504 </script> 507 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698