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

Side by Side Diff: LayoutTests/fast/dom/Document/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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Document/clone-node-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <link rel="help" href="http://dom.spec.whatwg.org/#dom-node-clonenode"> 2 <link rel="help" href="http://dom.spec.whatwg.org/#dom-node-clonenode">
3 <script src="../../../resources/js-test.js"></script> 3 <script src="../../../resources/js-test.js"></script>
4 <script> 4 <script>
5 description('Tests cloneNode for Document.'); 5 description('Tests cloneNode for Document.');
6 6
7 function className(object) { 7 function className(object) {
8 return Object.prototype.toString.call(object).slice(8, -1); 8 return Object.prototype.toString.call(object).slice(8, -1);
9 } 9 }
10 10
11 var doc = document.implementation.createDocument('', 'root', null); 11 var doc = document.implementation.createDocument('', 'root', null);
12 12
13 shouldBe('doc.cloneNode(false).__proto__', 'XMLDocument.prototype'); 13 shouldBe('doc.cloneNode(false).__proto__', 'XMLDocument.prototype');
14 shouldBeEqualToString('className(doc.cloneNode(false))', 'XMLDocument'); 14 shouldBeEqualToString('className(doc.cloneNode(false))', 'XMLDocument');
15 shouldBeEqualToString('doc.cloneNode(true).documentElement.localName', 'root'); 15 shouldBeEqualToString('doc.cloneNode(true).documentElement.localName', 'root');
16 shouldBeEqualToString('doc.cloneNode(true).contentType', 'application/xml');
16 shouldBeEqualToString('document.cloneNode(true).compatMode', 'CSS1Compat'); 17 shouldBeEqualToString('document.cloneNode(true).compatMode', 'CSS1Compat');
17 shouldBe('document.cloneNode(false).URL', 'document.URL'); 18 shouldBe('document.cloneNode(false).URL', 'document.URL');
18 shouldBe('document.cloneNode(false).baseURI', 'document.baseURI'); 19 shouldBe('document.cloneNode(false).baseURI', 'document.baseURI');
19 shouldBe('document.cloneNode(false).characterSet', 'document.characterSet'); 20 shouldBe('document.cloneNode(false).characterSet', 'document.characterSet');
21 shouldBeEqualToString('document.cloneNode(true).contentType', 'text/html');
20 22
21 </script> 23 </script>
22 </body> 24 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Document/clone-node-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698