Detab layout/reftests/bidi/dirAuto/setDir.js. (No bug, DONTBUILD)
authorJesse Ruderman <jruderman@gmail.com>
Tue, 23 Jul 2013 22:58:58 -0700
changeset 152038 1c8ba90e2f940d015a9cd9c7ce42b131173b4e23
parent 152037 18f56188b6b41ac4e4a680c4f6f04d6ff4f40979
child 152039 7cc5e6f37d58fca308eae07d8760cb29a9b5922d
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Detab layout/reftests/bidi/dirAuto/setDir.js. (No bug, DONTBUILD)
layout/reftests/bidi/dirAuto/setDir.js
--- a/layout/reftests/bidi/dirAuto/setDir.js
+++ b/layout/reftests/bidi/dirAuto/setDir.js
@@ -8,34 +8,34 @@ function setAllDir(value)
             break;
         }
     }
 }
 
 function setAllDirAttribute(value)
 {
     for (var i = 0; ; ++i) {
-	try {
-	    theElement = document.getElementById("set" + i);
-	    theElement.setAttribute("dir", value);
-	} catch(e) {
-	    break;
-	}
+        try {
+            theElement = document.getElementById("set" + i);
+            theElement.setAttribute("dir", value);
+        } catch(e) {
+            break;
+        }
     }
 }
 
 function removeAllDirAttribute()
 {
     for (var i = 0; ; ++i) {
-	try {
-	    theElement = document.getElementById("set" + i);
-	    theElement.removeAttribute("dir");
-	} catch(e) {
-	    break;
-	}
+        try {
+            theElement = document.getElementById("set" + i);
+            theElement.removeAttribute("dir");
+        } catch(e) {
+            break;
+        }
     }
 }
 
 function addOneElement(innerHTML)
 {
     var container = document.getElementById("container");
     var elem = document.createElement("div");
     elem.innerHTML = innerHTML;
@@ -63,52 +63,52 @@ function addRTLAutoElements()
 function setAllTextValuesTo(newText)
 {
     for (var i = 0; ; ++i) {
         theElement = document.getElementById("set" + i);
         if (!theElement) {
             break;
         }
         if (theElement.tagName == "INPUT" ||
-	    theElement.tagName == "TEXTAREA") {
+            theElement.tagName == "TEXTAREA") {
             theElement.value = newText;
-	} else {
+        } else {
             theElement.firstChild.textContent = newText;
-	}
+        }
     }
 }
 
 function setAllTextDefaultValuesTo(newText)
 {
     for (var i = 0; ; ++i) {
         theElement = document.getElementById("set" + i);
         if (!theElement) {
             break;
         }
         if (theElement.tagName == "INPUT" ||
-	    theElement.tagName == "TEXTAREA") {
+            theElement.tagName == "TEXTAREA") {
             theElement.defaultValue = newText;
-	} else {
+        } else {
             theElement.firstChild.textContent = newText;
-	}
+        }
     }
 }
 
 function setAllTextChildrenTo(newText)
 {
     for (var i = 0; ; ++i) {
         theElement = document.getElementById("set" + i);
         if (!theElement) {
             break;
         }
         if (theElement.tagName == "INPUT") {
             theElement.value = newText;
-	} else {
+        } else {
             theElement.firstChild.textContent = newText;
-	}
+        }
     }
 }
 
 function appendTextFromArray(textArray)
 {
     for (var i = 0; ; ++i) {
         theElement = document.getElementById("set" + i);
         if (!theElement) {
@@ -128,24 +128,24 @@ function appendTextFromArray(textArray)
 function appendSpansFromArray(textArray)
 {
     for (var i = 0; ; ++i) {
         theElement = document.getElementById("set" + i);
         if (!theElement) {
             break;
         }
         for (var j = 0; j < textArray.length; ++j) {
-	    // fake the result for elements that can't have markup content
+            // fake the result for elements that can't have markup content
             if (theElement.tagName == "INPUT") {
                 theElement.value += textArray[j];
-	    } else if (theElement.tagName == "TEXTAREA") {
-		theElement.innerHTML += textArray[j];
+            } else if (theElement.tagName == "TEXTAREA") {
+                theElement.innerHTML += textArray[j];
             } else {
                 var span = document.createElement("span");
-		span.innerHTML = textArray[j];
+                span.innerHTML = textArray[j];
                 theElement.appendChild(span);
             }
         }
     }
 }
 
 function prependTextFromArray(textArray)
 {
@@ -168,24 +168,24 @@ function prependTextFromArray(textArray)
 function prependSpansFromArray(textArray)
 {
     for (var i = 0; ; ++i) {
         theElement = document.getElementById("set" + i);
         if (!theElement) {
             break;
         }
         for (var j = 0; j < textArray.length; ++j) {
-	    // fake the result for elements that can't have markup content
+            // fake the result for elements that can't have markup content
             if (theElement.tagName == "INPUT") {
                 theElement.value = textArray[j] + theElement.value;
-	    } else if (theElement.tagName == "TEXTAREA") {
-		theElement.innerHTML = textArray[j] + theElement.innerHTML;
+            } else if (theElement.tagName == "TEXTAREA") {
+                theElement.innerHTML = textArray[j] + theElement.innerHTML;
             } else {
                 var span = document.createElement("span");
-		span.innerHTML = textArray[j];
+                span.innerHTML = textArray[j];
                 theElement.insertBefore(span, theElement.firstChild);
             }
         }
     }
 }
 
 function removeElements()
 {