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

Side by Side Diff: LayoutTests/fast/dom/DocumentFragment/document-fragment-constructor.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 <body> 2 <body>
3 <script src="../../js/resources/js-test-pre.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 <script> 4 <script>
5 5
6 description('This tests that DocumentFragment is constructable.'); 6 description('This tests that DocumentFragment is constructable.');
7 7
8 shouldBe('new DocumentFragment().ownerDocument', 'document'); 8 shouldBe('new DocumentFragment().ownerDocument', 'document');
9 9
10 shouldBe('typeof new DocumentFragment', '"object"'); 10 shouldBe('typeof new DocumentFragment', '"object"');
11 shouldBe('Object.prototype.toString.call(new DocumentFragment)', '"[object Docum entFragment]"'); 11 shouldBe('Object.prototype.toString.call(new DocumentFragment)', '"[object Docum entFragment]"');
12 shouldBeTrue('new DocumentFragment instanceof DocumentFragment'); 12 shouldBeTrue('new DocumentFragment instanceof DocumentFragment');
13 shouldBe('Object.getPrototypeOf(new DocumentFragment)', 'DocumentFragment.protot ype'); 13 shouldBe('Object.getPrototypeOf(new DocumentFragment)', 'DocumentFragment.protot ype');
14 14
15 var frame = document.createElement('iframe'); 15 var frame = document.createElement('iframe');
16 document.body.appendChild(frame); 16 document.body.appendChild(frame);
17 var innerWindow = frame.contentWindow; 17 var innerWindow = frame.contentWindow;
18 var innerDocument = frame.contentDocument; 18 var innerDocument = frame.contentDocument;
19 19
20 shouldBe('new innerWindow.DocumentFragment().ownerDocument', 'innerDocument') 20 shouldBe('new innerWindow.DocumentFragment().ownerDocument', 'innerDocument')
21 shouldBeTrue('new innerWindow.DocumentFragment instanceof innerWindow.DocumentFr agment'); 21 shouldBeTrue('new innerWindow.DocumentFragment instanceof innerWindow.DocumentFr agment');
22 shouldBe('Object.getPrototypeOf(new innerWindow.DocumentFragment)', 'innerWindow .DocumentFragment.prototype'); 22 shouldBe('Object.getPrototypeOf(new innerWindow.DocumentFragment)', 'innerWindow .DocumentFragment.prototype');
23 23
24 </script> 24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698