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

Side by Side Diff: LayoutTests/fast/dom/HTMLDocument/clone-node.html

Issue 151653004: Implemented Document.contentType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase and fixing tests on windows Created 6 years, 8 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 <!-- quirks mode --> 1 <!-- quirks mode -->
2 <title>Tests HTMLDocument cloneNode</title> 2 <title>Tests HTMLDocument cloneNode</title>
3 <link rel="help" href="http://dom.spec.whatwg.org/#dom-node-clonenode"> 3 <link rel="help" href="http://dom.spec.whatwg.org/#dom-node-clonenode">
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script> 5 <script>
6 description('Tests cloneNode for HTMLDocument.'); 6 description('Tests cloneNode for HTMLDocument.');
7 7
8 function className(object) { 8 function className(object) {
9 return Object.prototype.toString.call(object).slice(8, -1); 9 return Object.prototype.toString.call(object).slice(8, -1);
10 } 10 }
11 11
12 shouldBe('document.cloneNode(false).__proto__', 'HTMLDocument.prototype'); 12 shouldBe('document.cloneNode(false).__proto__', 'HTMLDocument.prototype');
13 shouldBeEqualToString('className(document.cloneNode(false))', 'HTMLDocument'); 13 shouldBeEqualToString('className(document.cloneNode(false))', 'HTMLDocument');
14 shouldBe('document.cloneNode(true).title', 'document.title'); 14 shouldBe('document.cloneNode(true).title', 'document.title');
15 shouldBeEqualToString('document.cloneNode(true).compatMode', 'BackCompat'); 15 shouldBeEqualToString('document.cloneNode(true).compatMode', 'BackCompat');
16 shouldBeEqualToString('document.cloneNode(true).contentType', 'text/html');
16 17
17 var doc = document.implementation.createHTMLDocument('title'); 18 var doc = document.implementation.createHTMLDocument('title');
18 shouldBe('doc.cloneNode(false).__proto__', 'HTMLDocument.prototype'); 19 shouldBe('doc.cloneNode(false).__proto__', 'HTMLDocument.prototype');
19 shouldBeEqualToString('className(doc.cloneNode(false))', 'HTMLDocument'); 20 shouldBeEqualToString('className(doc.cloneNode(false))', 'HTMLDocument');
20 shouldBe('doc.cloneNode(true).title', 'doc.title'); 21 shouldBe('doc.cloneNode(true).title', 'doc.title');
21 shouldBeEqualToString('doc.cloneNode(true).compatMode', 'CSS1Compat'); 22 shouldBeEqualToString('doc.cloneNode(true).compatMode', 'CSS1Compat');
23 shouldBeEqualToString('doc.cloneNode(true).contentType', 'text/html');
22 24
23 </script> 25 </script>
24 </body> 26 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/Document/clone-node-expected.txt ('k') | LayoutTests/fast/dom/HTMLDocument/clone-node-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698