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

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

Issue 14990005: Remove ENTITY_REFERENCE_NODE (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove some empty lines Created 7 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../js/resources/js-test-pre.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <div id="element" name="element_name"></div> 6 <div id="element" name="element_name"></div>
7 <script> 7 <script>
8 description('This test checks that all but a handful of dom constructors throw e xceptions, and the rest return reasonable objects. It also tests that those cons tructors have higher precedence than a document element with the same ID or name .'); 8 description('This test checks that all but a handful of dom constructors throw e xceptions, and the rest return reasonable objects. It also tests that those cons tructors have higher precedence than a document element with the same ID or name .');
9 9
10 var element = document.getElementById("element"); 10 var element = document.getElementById("element");
11 11
12 // These objects should throw an exception when their constructor is called 12 // These objects should throw an exception when their constructor is called
13 // with no arguments. (Some of them may have working constructors that require 13 // with no arguments. (Some of them may have working constructors that require
14 // arguments to be valid.) 14 // arguments to be valid.)
15 var objects_exception = [ 15 var objects_exception = [
16 'Attr', 16 'Attr',
17 'CharacterData', 17 'CharacterData',
18 'CDATASection', 18 'CDATASection',
19 'Document', 19 'Document',
20 'DocumentType', 20 'DocumentType',
21 'Element', 21 'Element',
22 'Entity', 22 'Entity',
23 'EntityReference',
24 'HTMLDocument', 23 'HTMLDocument',
25 'Node', 24 'Node',
26 'Notation', 25 'Notation',
27 'ProcessingInstruction', 26 'ProcessingInstruction',
28 'HTMLAllCollection', 27 'HTMLAllCollection',
29 'HTMLAnchorElement', 28 'HTMLAnchorElement',
30 'HTMLAppletElement', 29 'HTMLAppletElement',
31 'HTMLAreaElement', 30 'HTMLAreaElement',
32 'HTMLBaseElement', 31 'HTMLBaseElement',
33 'HTMLBodyElement', 32 'HTMLBodyElement',
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 element.id = "element"; 208 element.id = "element";
210 element.name = obj; 209 element.name = obj;
211 shouldBe("TryAllocate('" + obj + "')", 210 shouldBe("TryAllocate('" + obj + "')",
212 "'[object " + objects_different_constructor[obj] + "]'"); 211 "'[object " + objects_different_constructor[obj] + "]'");
213 element.name = "element_name"; 212 element.name = "element_name";
214 } 213 }
215 </script> 214 </script>
216 <script src="../js/resources/js-test-post.js"></script> 215 <script src="../js/resources/js-test-post.js"></script>
217 </body> 216 </body>
218 </html> 217 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Window/window-lookup-precedence-expected.txt ('k') | LayoutTests/fast/dom/dom-constructors-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698