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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Element/script-tests/getAttribute-check-case-sensitivity.js

Issue 1747403002: Make Document.createAttribute lowercase the name (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 4 years, 1 month 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/Element/script-tests/getAttribute-check-case-sensitivity.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Element/script-tests/getAttribute-check-case-sensitivity.js b/third_party/WebKit/LayoutTests/fast/dom/Element/script-tests/getAttribute-check-case-sensitivity.js
index ee2bffafb23f238be9c74e35998c6d756a104331..3b73ac26aa17f5c13fb4ef378116b2b0df1cf2b5 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Element/script-tests/getAttribute-check-case-sensitivity.js
+++ b/third_party/WebKit/LayoutTests/fast/dom/Element/script-tests/getAttribute-check-case-sensitivity.js
@@ -61,7 +61,7 @@ function testAttribNodeNamePreservesCase()
return result.join(",");
}
-shouldBe("testAttribNodeNamePreservesCase()", '"A,A"');
+shouldBe("testAttribNodeNamePreservesCase()", '"a,a"');
function testAttribNodeNamePreservesCaseGetNode()
@@ -82,7 +82,7 @@ function testAttribNodeNamePreservesCaseGetNode()
return result.join(",");
}
-shouldBe("testAttribNodeNamePreservesCaseGetNode()", '"A,A"');
+shouldBe("testAttribNodeNamePreservesCaseGetNode()", '"a,a"');
function testAttribNodeNamePreservesCaseGetNode2()
{
@@ -109,7 +109,7 @@ function testAttribNodeNamePreservesCaseGetNode2()
return result.join(",");
}
-shouldBe("testAttribNodeNamePreservesCaseGetNode2()", '"B,B"');
+shouldBe("testAttribNodeNamePreservesCaseGetNode2()", '"b,b"');
function testAttribNodeNameGetMutate()
{
@@ -135,7 +135,7 @@ var attrib = document.createAttribute("myAttrib");
attrib.value = "XXX";
node.setAttributeNode(attrib);
-shouldBe("(new XMLSerializer).serializeToString(node)", '"<div xmlns=\\"http://www.w3.org/1999/xhtml\\" myAttrib=\\"XXX\\"></div>"');
-shouldBe("node.getAttributeNode('myAttrib').name", '"myAttrib"');
-shouldBe("node.getAttributeNode('myattrib').name", '"myAttrib"');
-shouldBe("attrib.name", '"myAttrib"');
+shouldBe("(new XMLSerializer).serializeToString(node)", '"<div xmlns=\\"http://www.w3.org/1999/xhtml\\" myattrib=\\"XXX\\"></div>"');
+shouldBe("node.getAttributeNode('myAttrib').name", '"myattrib"');
+shouldBe("node.getAttributeNode('myattrib').name", '"myattrib"');
+shouldBe("attrib.name", '"myattrib"');

Powered by Google App Engine
This is Rietveld 408576698