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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/global-constructors.html

Issue 2840163002: DOM: NodeIterator.filter and TreeWalker.filter should return values which were specified to createN… (Closed)
Patch Set: Move ToV8() to ToV8ForCore.h, etc. 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 * { 4 * {
5 color: black; 5 color: black;
6 } 6 }
7 </style> 7 </style>
8 <script> 8 <script>
9 function print(message, color) 9 function print(message, color)
10 { 10 {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 xpathevaluator = new XPathEvaluator(); 75 xpathevaluator = new XPathEvaluator();
76 shouldBe("window.XPathEvaluator.prototype.isPrototypeOf(xpathevaluator)", tr ue); 76 shouldBe("window.XPathEvaluator.prototype.isPrototypeOf(xpathevaluator)", tr ue);
77 77
78 xpathresult = xpathevaluator.evaluate('/', document, null, 0, null); 78 xpathresult = xpathevaluator.evaluate('/', document, null, 0, null);
79 shouldBe("window.XPathResult.prototype.isPrototypeOf(xpathresult)", true); 79 shouldBe("window.XPathResult.prototype.isPrototypeOf(xpathresult)", true);
80 80
81 try { 81 try {
82 nodeFilter = document.createNodeIterator(document, NodeFilter.SHOW_ELEMENT , function () {}, false).filter; 82 nodeFilter = document.createNodeIterator(document, NodeFilter.SHOW_ELEMENT , function () {}, false).filter;
83 } catch(e) {} 83 } catch(e) {}
84 shouldBe("window.NodeFilter.prototype.isPrototypeOf(nodeFilter)", true); 84 shouldBe("window.NodeFilter.prototype.isPrototypeOf(nodeFilter)", false);
85 85
86 originalNodePrototype = window.Node.prototype; 86 originalNodePrototype = window.Node.prototype;
87 87
88 deleteResult = delete window.Node.prototype; 88 deleteResult = delete window.Node.prototype;
89 print("[Deleted window.Node.prototype]"); 89 print("[Deleted window.Node.prototype]");
90 shouldBe("window.Node.prototype", originalNodePrototype); 90 shouldBe("window.Node.prototype", originalNodePrototype);
91 shouldBe("deleteResult", false); 91 shouldBe("deleteResult", false);
92 92
93 originalNodeConstructor = window.Node; 93 originalNodeConstructor = window.Node;
94 94
(...skipping 26 matching lines...) Expand all
121 121
122 <body onload="test();"> 122 <body onload="test();">
123 <p>This page tests global constructor objects like window.HTMLDocument. If it pa sses, you'll 123 <p>This page tests global constructor objects like window.HTMLDocument. If it pa sses, you'll
124 see no lines with the text FAIL below. 124 see no lines with the text FAIL below.
125 </p> 125 </p>
126 <hr> 126 <hr>
127 <div id='console'></div> 127 <div id='console'></div>
128 128
129 </body> 129 </body>
130 </html> 130 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698