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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/XMLSerializer-attribute-entities.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/dom/XMLSerializer-attribute-entities.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/XMLSerializer-attribute-entities.html b/third_party/WebKit/LayoutTests/fast/dom/XMLSerializer-attribute-entities.html
deleted file mode 100644
index e5a89cde3e02765f1131c3d305c789bd3a0acfdf..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/XMLSerializer-attribute-entities.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/js-test.js"></script>
-
-<script>
-description('Test that XMLSerializer quotes the attribute characters specified in <a href="https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#dfn-concept-serialize-xml-attributes">the W3C spec</a>.');
-
-var attrValue = '< > & " \' \xA0';
-
-// HTML case.
-// DOM parsing and serialization defers to the HTML specification: http://www.w3.org/html/wg/drafts/html/master/syntax.html#attribute's-serialized-name
-// Steps 1-3 under the "Escaping a string" heading are relevant to attributes.
-window.htmlElement = document.createElement('div');
-htmlElement.setAttribute('quoteme', attrValue);
-shouldBe('htmlElement.outerHTML', '"<div quoteme=\\"< > &amp; &quot; \' &nbsp;\\"><' + '/div>"');
-
-// XML case.
-// DOM parsing and serialization: https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#dfn-concept-serialize-xml-attributes
-// Step 2 substep 4 is relevant to attributes.
-var xmlDocument = document.implementation.createDocument('http://www.w3.org/1999/xhtml', 'html', null);
-window.xmlElement = xmlDocument.createElement('div');
-xmlElement.setAttribute('quoteme', attrValue);
-shouldBe('(new XMLSerializer()).serializeToString(xmlElement)', '"<div xmlns=\\"http://www.w3.org/1999/xhtml\\" quoteme=\\"&lt; &gt; &amp; &quot; \' \\xA0\\"><' + '/div>"');
-</script>

Powered by Google App Engine
This is Rietveld 408576698