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

Side by Side Diff: LayoutTests/fast/dom/compare-document-position-disconnected-nodes.html

Issue 58533003: Move fast/js/resources files to resources. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script> 5 <script>
6 var a; 6 var a;
7 var b; 7 var b;
8 8
9 function testElements(_a, _b) { 9 function testElements(_a, _b) {
10 a = _a; 10 a = _a;
11 b = _b; 11 b = _b;
12 12
13 shouldBe('a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_DISC ONNECTED', 'Node.DOCUMENT_POSITION_DISCONNECTED'); 13 shouldBe('a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_DISC ONNECTED', 'Node.DOCUMENT_POSITION_DISCONNECTED');
14 shouldBe('b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_DISC ONNECTED', 'Node.DOCUMENT_POSITION_DISCONNECTED'); 14 shouldBe('b.compareDocumentPosition(a) & Node.DOCUMENT_POSITION_DISC ONNECTED', 'Node.DOCUMENT_POSITION_DISCONNECTED');
(...skipping 17 matching lines...) Expand all
32 debug("* Test with 2 disconnected attributes"); 32 debug("* Test with 2 disconnected attributes");
33 testElements(document.createAttribute("a"), document.createAttribute("b" )); 33 testElements(document.createAttribute("a"), document.createAttribute("b" ));
34 debug("* Test with disconnected attribute and element"); 34 debug("* Test with disconnected attribute and element");
35 testElements(document.createAttribute("a"), document.createElement("b")) ; 35 testElements(document.createAttribute("a"), document.createElement("b")) ;
36 </script> 36 </script>
37 </head> 37 </head>
38 <body> 38 <body>
39 <p>Comparing the positions of two disconnected nodes should result in DOCUME NT_POSITION_DISCONNECTED.</p> 39 <p>Comparing the positions of two disconnected nodes should result in DOCUME NT_POSITION_DISCONNECTED.</p>
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698