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

Unified Diff: LayoutTests/dom/xhtml/level3/core/documentadoptnode01.js

Issue 756123002: Remove tabs and trailing whitspace in LayoutTests/dom/.../*.js (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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/dom/xhtml/level3/core/documentadoptnode01.js
diff --git a/LayoutTests/dom/xhtml/level3/core/documentadoptnode01.js b/LayoutTests/dom/xhtml/level3/core/documentadoptnode01.js
index 61f1b764b24eef45309aec8ebb4b447f00ef85f0..0bc54d1a89785c92b2f4f3a96211fb98278d2222 100644
--- a/LayoutTests/dom/xhtml/level3/core/documentadoptnode01.js
+++ b/LayoutTests/dom/xhtml/level3/core/documentadoptnode01.js
@@ -1,17 +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
*/
-
-
/**
* Gets URI that identifies the test.
* @return uri identifier of test
@@ -41,26 +38,24 @@ function setUpPage() {
builder = createConfiguredBuilder();
docsLoaded = 0;
-
+
var docRef = null;
if (typeof(this.doc) != 'undefined') {
docRef = this.doc;
}
docsLoaded += preload(docRef, "doc", "hc_staff");
-
+
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,
@@ -72,11 +67,10 @@ function loadComplete() {
}
}
-
/**
-*
- Adopt the class attribute node of the fourth acronym element. Check if this attribute has been adopted successfully by verifying the
- nodeName, nodeType, nodeValue, specified and ownerElement attributes of the adopted node.
+*
+ Adopt the class attribute node of the fourth acronym element. Check if this attribute has been adopted successfully by verifying the
+ nodeName, nodeType, nodeValue, specified and ownerElement attributes of the adopted node.
* @author IBM
* @author Neil Delima
@@ -100,7 +94,7 @@ function documentadoptnode01() {
var secondChild;
var secondChildType;
var secondChildName;
-
+
var docRef = null;
if (typeof(this.doc) != 'undefined') {
docRef = this.doc;
@@ -110,13 +104,13 @@ function documentadoptnode01() {
element = childList.item(3);
attr = element.getAttributeNode("class");
adoptedclass = doc.adoptNode(attr);
-
- if(
-
- (adoptedclass != null)
- ) {
- nodeName = adoptedclass.nodeName;
+ if(
+
+ (adoptedclass != null)
+
+ ) {
+ nodeName = adoptedclass.nodeName;
nodeValue = adoptedclass.nodeValue;
@@ -132,11 +126,10 @@ function documentadoptnode01() {
assertNotNull("firstChildNotNull",firstChild);
firstChildValue = firstChild.nodeValue;
-
- if(
- ("Y" == firstChildValue)
- ) {
- secondChild = firstChild.nextSibling;
+ if(
+ ("Y" == firstChildValue)
+ ) {
+ secondChild = firstChild.nextSibling;
assertNotNull("secondChildNotNull",secondChild);
secondChildType = secondChild.nodeType;
@@ -145,20 +138,17 @@ secondChildType = secondChild.nodeType;
secondChildName = secondChild.nodeName;
assertEquals("secondChildIsEnt1Reference","alpha",secondChildName);
-
- }
-
- else {
- assertEquals("documentadoptnode01_nodeValue","Yα",nodeValue);
-
- }
-
- }
-
-}
+ }
+
+ else {
+ assertEquals("documentadoptnode01_nodeValue","Yα",nodeValue);
+
+ }
+ }
+}
function runTest() {
documentadoptnode01();
« no previous file with comments | « LayoutTests/dom/xhtml/level3/core/canonicalform09.js ('k') | LayoutTests/dom/xhtml/level3/core/documentadoptnode02.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698