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

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

Issue 158593003: Remove Unused measure DocumentCreateAttributeNS (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 unified diff | Download patch
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 if(checkInitialization(builder, "documentrenamenode22") != null) return; 88 if(checkInitialization(builder, "documentrenamenode22") != null) return;
89 var doc; 89 var doc;
90 var attr; 90 var attr;
91 var renamedNode; 91 var renamedNode;
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 attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:l ang"); 98 attr = doc.createAttribute("xml:lang");
99 99
100 { 100 {
101 success = false; 101 success = false;
102 try { 102 try {
103 renamedNode = doc.renameNode(attr,"http://www.w3.org/1999/xmlns/","x mlns"); 103 renamedNode = doc.renameNode(attr,"http://www.w3.org/1999/xmlns/","x mlns");
104 } 104 }
105 catch(ex) { 105 catch(ex) {
106 success = (typeof(ex.code) != 'undefined' && ex.code == 14); 106 success = (typeof(ex.code) != 'undefined' && ex.code == 14);
107 } 107 }
108 assertTrue("throw_NAMESPACE_ERR",success); 108 assertTrue("throw_NAMESPACE_ERR",success);
109 } 109 }
110 110
111 } 111 }
112 112
113 113
114 114
115 115
116 function runTest() { 116 function runTest() {
117 documentrenamenode22(); 117 documentrenamenode22();
118 } 118 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698