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

Unified Diff: LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity-expected.txt

Issue 740223003: Revive tests for Document.createAttributeNS() and Element.setAttributeNodeNS() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: deprecation messages Created 6 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: LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity-expected.txt
diff --git a/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity-expected.txt b/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity-expected.txt
index 888aebdef6f7a273df3bad26fe828cfd5961ba42..8ce3e396f19da53b91ed49e93b1f60966e13302f 100644
--- a/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity-expected.txt
+++ b/LayoutTests/fast/dom/Element/setAttributeNode-case-insensitivity-expected.txt
@@ -1,5 +1,4 @@
Test for Bugzilla bug: 90341: createAttribute/setAttributeNode does not properly normalize case.
This test verifies that the setAttributeNode() API checks for existing attributes case-insensitively. Thus the value of an existing attribute with the same name but in a different case should get replaced by the new value specified via the setAttributeNode() method.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
@@ -9,4 +8,12 @@ PASS successfullyParsed is true
TEST COMPLETE
PASS test.getAttribute('style') is test.getAttribute('STYLE')
PASS test.getAttributeNode('style').value is test.getAttributeNode('STYLE').value
+Verifying that attributes with the same name but different namespaces are treated as unique entities. For the following test two different attribute values should be returned.
+PASS test.getAttributeNodeNS('ns1', 'newattr').value is 'newattr1'
+PASS test.getAttributeNodeNS('ns2', 'newattr').value is 'newattr2'
+Verifying that attributes with same name but different case and having same namespaces are treated as same. In the following test the new attribute should overwrite the value of the existing one.
+PASS test.getAttributeNodeNS('ns1', 'newattr').value is 'newattr3'
+PASS successfullyParsed is true
+
+TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698