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

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

Issue 253843002: Deprecate Attr.nodeValue / Attr.textContent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline more tests 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/Element/script-tests/getAttribute-check-case-sensitivity.js
diff --git a/LayoutTests/fast/dom/Element/script-tests/getAttribute-check-case-sensitivity.js b/LayoutTests/fast/dom/Element/script-tests/getAttribute-check-case-sensitivity.js
index 06f6cf7451b68c5c8db8585ba5b078e9c59f5769..ee2bffafb23f238be9c74e35998c6d756a104331 100644
--- a/LayoutTests/fast/dom/Element/script-tests/getAttribute-check-case-sensitivity.js
+++ b/LayoutTests/fast/dom/Element/script-tests/getAttribute-check-case-sensitivity.js
@@ -17,7 +17,7 @@ function testGetAttributeNodeMixedCase()
{
var div = document.createElement('div');
var a = div.ownerDocument.createAttribute("mixedCaseAttrib");
- a.nodeValue = "x";
+ a.value = "x";
div.setAttributeNode(a);
return div.getAttribute("mixedCaseAttrib");
}
@@ -28,7 +28,7 @@ function testGetAttributeNodeLowerCase(div)
{
var div = document.createElement('div');
var a = div.ownerDocument.createAttribute("lowercaseattrib");
- a.nodeValue = "x";
+ a.value = "x";
div.setAttributeNode(a);
return div.getAttribute("lowerCaseAttrib");
}
@@ -39,11 +39,11 @@ function testSetAttributeNodeKeepsRef(div)
{
var div = document.createElement('div');
var a = div.ownerDocument.createAttribute("attrib_name");
- a.nodeValue = "0";
+ a.value = "0";
div.setAttributeNode(a);
// Mutate the attribute node.
- a.nodeValue = "1";
+ a.value = "1";
return div.getAttribute("attrib_name");
}
@@ -54,7 +54,7 @@ function testAttribNodeNamePreservesCase()
{
var div = document.createElement('div');
var a = div.ownerDocument.createAttribute("A");
- a.nodeValue = "x";
+ a.value = "x";
div.setAttributeNode(a);
var result = [ a.name, a.nodeName ];
@@ -70,7 +70,7 @@ function testAttribNodeNamePreservesCaseGetNode()
var body = document.body;
var a = body.ownerDocument.createAttribute("A");
- a.nodeValue = "x";
+ a.value = "x";
body.setAttributeNode(a);
@@ -90,7 +90,7 @@ function testAttribNodeNamePreservesCaseGetNode2()
var body = document.body;
var a = body.ownerDocument.createAttribute("B");
- a.nodeValue = "x";
+ a.value = "x";
body.setAttributeNode(a);
@@ -100,7 +100,7 @@ function testAttribNodeNamePreservesCaseGetNode2()
// Now create node second time -- this time case is preserved in FF!
a = body.ownerDocument.createAttribute("B");
- a.nodeValue = "x";
+ a.value = "x";
body.setAttributeNode(a);
a = document.body.getAttributeNode("B");
@@ -117,7 +117,7 @@ function testAttribNodeNameGetMutate()
var body = document.body;
var a = body.ownerDocument.createAttribute("c");
- a.nodeValue = "0";
+ a.value = "0";
body.setAttributeNode(a);
a = document.body.getAttributeNode("c");
@@ -125,14 +125,14 @@ function testAttribNodeNameGetMutate()
a = document.body.getAttributeNode("c");
- return a.nodeValue;
+ return a.value;
}
shouldBe("testAttribNodeNameGetMutate()", '"1"');
var node = document.createElement("div");
var attrib = document.createAttribute("myAttrib");
-attrib.nodeValue = "XXX";
+attrib.value = "XXX";
node.setAttributeNode(attrib);
shouldBe("(new XMLSerializer).serializeToString(node)", '"<div xmlns=\\"http://www.w3.org/1999/xhtml\\" myAttrib=\\"XXX\\"></div>"');

Powered by Google App Engine
This is Rietveld 408576698