Index: LayoutTests/dom/svg/level3/xpath/XPathNSResolver_lookupNamespaceURI_nist_dmstc.js |
diff --git a/LayoutTests/dom/svg/level3/xpath/XPathNSResolver_lookupNamespaceURI_nist_dmstc.js b/LayoutTests/dom/svg/level3/xpath/XPathNSResolver_lookupNamespaceURI_nist_dmstc.js |
index 1bd1ae5d88141e09d49f7fe0280fcf1c49978828..761385ac7e22cc57b216aee9f5a539052014ec7b 100644 |
--- a/LayoutTests/dom/svg/level3/xpath/XPathNSResolver_lookupNamespaceURI_nist_dmstc.js |
+++ b/LayoutTests/dom/svg/level3/xpath/XPathNSResolver_lookupNamespaceURI_nist_dmstc.js |
@@ -1,16 +1,14 @@ |
- |
/* |
-Copyright © 2001-2004 World Wide Web Consortium, |
-(Massachusetts Institute of Technology, European Research Consortium |
-for Informatics and Mathematics, Keio University). All |
-Rights Reserved. This work is distributed under the W3C® Software License [1] in the |
-hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
-the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
+Copyright © 2001-2004 World Wide Web Consortium, |
+(Massachusetts Institute of Technology, European Research Consortium |
+for Informatics and Mathematics, Keio University). All |
+Rights Reserved. This work is distributed under the W3C® Software License [1] in the |
+hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 |
*/ |
- |
// expose test function names |
function exposeTestFunctionNames() |
{ |
@@ -38,26 +36,24 @@ function setUpPage() { |
builder = createConfiguredBuilder(); |
docsLoaded = 0; |
- |
+ |
var docRef = null; |
if (typeof(this.doc) != 'undefined') { |
docRef = this.doc; |
} |
docsLoaded += preload(docRef, "doc", "staffNS"); |
- |
+ |
if (docsLoaded == 1) { |
setUpPageStatus = 'complete'; |
} |
} catch(ex) { |
- catchInitializationError(builder, ex); |
+ catchInitializationError(builder, ex); |
setUpPageStatus = 'complete'; |
} |
} |
- |
- |
// |
-// This method is called on the completion of |
+// This method is called on the completion of |
// each asychronous load started in setUpTests. |
// |
// When every synchronous loaded document has completed, |
@@ -69,15 +65,14 @@ function loadComplete() { |
} |
} |
- |
/** |
-* |
+* |
Interate over all employee elements with xmlns:dmstc attribute |
- in the test document, creating nsresolvers checking that |
- for all children the prefix 'nist' resolves to |
- http://www.nist.gov and that prefix 'dmstc' resolves to the same |
+ in the test document, creating nsresolvers checking that |
+ for all children the prefix 'nist' resolves to |
+ http://www.nist.gov and that prefix 'dmstc' resolves to the same |
value as employee.getAttribute('xmlns:dmstc'). |
- |
+ |
* @author Bob Clary |
* @see http://www.w3.org/TR/2003/CR-DOM-Level-3-XPath-20030331/xpath#XPathEvaluator |
* @see http://www.w3.org/TR/2003/CR-DOM-Level-3-XPath-20030331/xpath#XPathEvaluator-createNSResolver |
@@ -96,7 +91,7 @@ function XPathNSResolver_lookupNamespaceURI_nist_dmstc() { |
var children; |
var employee; |
var employees; |
- |
+ |
var docRef = null; |
if (typeof(this.doc) != 'undefined') { |
docRef = this.doc; |
@@ -115,15 +110,12 @@ for(var indexN65633 = 0;indexN65633 < employees.length; indexN65633++) { |
assertEquals("dmstcequal",namespaceURI,lookupNamespaceURI); |
lookupNamespaceURI = resolver.lookupNamespaceURI("nist"); |
assertEquals("nistequal","http://www.nist.gov",lookupNamespaceURI); |
- |
- } |
- |
- } |
- |
-} |
+ } |
+ } |
+} |
function runTest() { |
XPathNSResolver_lookupNamespaceURI_nist_dmstc(); |