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

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

Issue 1529523002: Import dom/ from web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweak W3CImportExpectations Created 5 years 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
(Empty)
1 <!doctype html>
2 <title>Node constants</title>
3 <script src="../../../../resources/testharness.js"></script>
4 <script src="../../../../resources/testharnessreport.js"></script>
5 <script src="../constants.js"></script>
6 <div id="log"></div>
7 <script>
8 var objects;
9 setup(function() {
10 objects = [
11 [Node, "Node interface object"],
12 [Node.prototype, "Node prototype object"],
13 [document.createElement("foo"), "Element object"],
14 [document.createTextNode("bar"), "Text object"]
15 ]
16 })
17 testConstants(objects, [
18 ["ELEMENT_NODE", 1],
19 ["ATTRIBUTE_NODE", 2],
20 ["TEXT_NODE", 3],
21 ["CDATA_SECTION_NODE", 4],
22 ["ENTITY_REFERENCE_NODE", 5],
23 ["ENTITY_NODE", 6],
24 ["PROCESSING_INSTRUCTION_NODE", 7],
25 ["COMMENT_NODE", 8],
26 ["DOCUMENT_NODE", 9],
27 ["DOCUMENT_TYPE_NODE", 10],
28 ["DOCUMENT_FRAGMENT_NODE", 11],
29 ["NOTATION_NODE", 12]
30 ], "nodeType")
31 testConstants(objects, [
32 ["DOCUMENT_POSITION_DISCONNECTED", 0x01],
33 ["DOCUMENT_POSITION_PRECEDING", 0x02],
34 ["DOCUMENT_POSITION_FOLLOWING", 0x04],
35 ["DOCUMENT_POSITION_CONTAINS", 0x08],
36 ["DOCUMENT_POSITION_CONTAINED_BY", 0x10],
37 ["DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC", 0x20]
38 ], "createDocumentPosition")
39 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698