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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Node/script-tests/normalize-with-cdata.js

Issue 2667393002: Stop using script-tests in fast/dom/. (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/dom/Node/script-tests/normalize-with-cdata.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Node/script-tests/normalize-with-cdata.js b/third_party/WebKit/LayoutTests/fast/dom/Node/script-tests/normalize-with-cdata.js
deleted file mode 100644
index f15671cb297551893414492c04ee795c8c363b65..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/Node/script-tests/normalize-with-cdata.js
+++ /dev/null
@@ -1,20 +0,0 @@
-description('Test of normalize on an XML document with CDATA.');
-
-var parser = new DOMParser();
-var serializer = new XMLSerializer();
-
-var xmlChunk = parser.parseFromString(
- '<foo>' +
- 'This is some text before the CDATA' +
- '<![CDATA[This is some <bold>markup</bold> inside of a CDATA]]>' +
- 'This is some text after the CDATA' +
- '</foo>',
- 'application/xml');
-
-debug('Before normalize');
-shouldBe('serializer.serializeToString(xmlChunk)', '"<foo>This is some text before the CDATA<![CDATA[This is some <bold>markup</bold> inside of a CDATA]]>This is some text after the CDATA</foo>"');
-shouldBe('xmlChunk.documentElement.childNodes.length', '3');
-xmlChunk.documentElement.normalize();
-debug('After normalize');
-shouldBe('serializer.serializeToString(xmlChunk)', '"<foo>This is some text before the CDATA<![CDATA[This is some <bold>markup</bold> inside of a CDATA]]>This is some text after the CDATA</foo>"');
-shouldBe('xmlChunk.documentElement.childNodes.length', '3');

Powered by Google App Engine
This is Rietveld 408576698