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

Unified Diff: third_party/WebKit/LayoutTests/fast/html/xhtml-serialize.html

Issue 2667303004: Move tests for DOMParser and XMLSerializer to dom/domparsing/. (Closed)
Patch Set: Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/html/xhtml-serialize.html
diff --git a/third_party/WebKit/LayoutTests/fast/html/xhtml-serialize.html b/third_party/WebKit/LayoutTests/fast/html/xhtml-serialize.html
deleted file mode 100644
index bfde40df199125aa899de7179385fc1ee4abb975..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/html/xhtml-serialize.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<body>
-<p>This test checks whether serialized invalid XHTML is valid XML (for bug 9901).</p>
-<p>If the test passes, you'll see a series of 'PASS' messages below.</p>
-<pre id="console"></pre>
-
-<script>
-if (window.testRunner)
- testRunner.dumpAsText();
-
-function log(s)
-{
- document.getElementById('console').appendChild(document.createTextNode(s));
-}
-
-function shouldBe(a, b)
-{
- var evalA;
- try {
- evalA = eval(a);
- } catch(e) {
- evalA = e;
- }
-
- if (evalA == b)
- log('PASS: ' + a + ' should be ' + b + ' and is.\n');
- else
- log('FAIL: ' + a + ' should be ' + b + ' but instead is ' + evalA + '.\n');
-}
-
-var doc = (new DOMParser()).parseFromString('<input xmlns="http://www.w3.org/1999/xhtml">123</input>', 'text/xml');
-var str = (new XMLSerializer()).serializeToString(doc);
-
-shouldBe('doc.firstChild.firstChild.nodeValue', '123');
-shouldBe('str', '<input xmlns=\"http://www.w3.org/1999/xhtml\">123</input>');
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698