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

Side by Side Diff: LayoutTests/dom/xhtml/level3/core/nodeinsertbefore03.js

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 1
2 /* 2 /*
3 Copyright © 2001-2004 World Wide Web Consortium, 3 Copyright © 2001-2004 World Wide Web Consortium,
4 (Massachusetts Institute of Technology, European Research Consortium 4 (Massachusetts Institute of Technology, European Research Consortium
5 for Informatics and Mathematics, Keio University). All 5 for Informatics and Mathematics, Keio University). All
6 Rights Reserved. This work is distributed under the W3C® Software License [1] i n the 6 Rights Reserved. This work is distributed under the W3C® Software License [1] i n the
7 hope that it will be useful, but WITHOUT ANY WARRANTY; without even 7 hope that it will be useful, but WITHOUT ANY WARRANTY; without even
8 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 8 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9 9
10 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 10 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 var newAttr; 90 var newAttr;
91 var inserted; 91 var inserted;
92 92
93 var docRef = null; 93 var docRef = null;
94 if (typeof(this.doc) != 'undefined') { 94 if (typeof(this.doc) != 'undefined') {
95 docRef = this.doc; 95 docRef = this.doc;
96 } 96 }
97 doc = load(docRef, "doc", "hc_staff"); 97 doc = load(docRef, "doc", "hc_staff");
98 docType = doc.doctype; 98 docType = doc.doctype;
99 99
100 newAttr = doc.createAttribute("xml:lang"); 100 newAttr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xm l:lang");
101 101
102 { 102 {
103 success = false; 103 success = false;
104 try { 104 try {
105 inserted = doc.insertBefore(newAttr,docType); 105 inserted = doc.insertBefore(newAttr,docType);
106 } 106 }
107 catch(ex) { 107 catch(ex) {
108 success = (typeof(ex.code) != 'undefined' && ex.code == 3); 108 success = (typeof(ex.code) != 'undefined' && ex.code == 3);
109 } 109 }
110 assertTrue("throw_HIERARCHY_REQUEST_ERR",success); 110 assertTrue("throw_HIERARCHY_REQUEST_ERR",success);
111 } 111 }
112 112
113 } 113 }
114 114
115 115
116 116
117 117
118 function runTest() { 118 function runTest() {
119 nodeinsertbefore03(); 119 nodeinsertbefore03();
120 } 120 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698