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

Side by Side Diff: LayoutTests/fast/dom/Text/text-constructor.html

Issue 48903019: Delete js-test-post.js. (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="../../js/resources/js-test-pre.js"></script>
4 <script> 4 <script>
5 5
6 description('This tests that Text is constructable.'); 6 description('This tests that Text is constructable.');
7 7
8 shouldBe('new Text("one").data', '"one"'); 8 shouldBe('new Text("one").data', '"one"');
9 shouldBe('new Text().data', '""'); 9 shouldBe('new Text().data', '""');
10 shouldBe('new Text("two").ownerDocument', 'document'); 10 shouldBe('new Text("two").ownerDocument', 'document');
11 11
12 shouldBe('typeof new Text', '"object"'); 12 shouldBe('typeof new Text', '"object"');
13 shouldBe('Object.prototype.toString.call(new Text)', '"[object Text]"'); 13 shouldBe('Object.prototype.toString.call(new Text)', '"[object Text]"');
14 shouldBeTrue('new Text instanceof Text'); 14 shouldBeTrue('new Text instanceof Text');
15 shouldBe('Object.getPrototypeOf(new Text)', 'Text.prototype'); 15 shouldBe('Object.getPrototypeOf(new Text)', 'Text.prototype');
16 16
17 var frame = document.createElement('iframe'); 17 var frame = document.createElement('iframe');
18 document.body.appendChild(frame); 18 document.body.appendChild(frame);
19 var innerWindow = frame.contentWindow; 19 var innerWindow = frame.contentWindow;
20 var innerDocument = frame.contentDocument; 20 var innerDocument = frame.contentDocument;
21 21
22 shouldBe('new innerWindow.Text("three").ownerDocument', 'innerDocument') 22 shouldBe('new innerWindow.Text("three").ownerDocument', 'innerDocument')
23 shouldBeTrue('new innerWindow.Text instanceof innerWindow.Text'); 23 shouldBeTrue('new innerWindow.Text instanceof innerWindow.Text');
24 shouldBe('Object.getPrototypeOf(new innerWindow.Text)', 'innerWindow.Text.protot ype'); 24 shouldBe('Object.getPrototypeOf(new innerWindow.Text)', 'innerWindow.Text.protot ype');
25 25
26 </script> 26 </script>
27 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Text/script-tests/TEMPLATE.html ('k') | LayoutTests/fast/dom/Text/text-should-not-have-attributes.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698