Bug 1337186 - rm trailing whitespaces from navigation/test_bug386782 r=smaug draft
authorFrederik Braun <fbraun+gh@mozilla.com>
Wed, 15 Feb 2017 11:39:01 +0100
changeset 485921 11816f4072165087472052417aa750e218ccc247
parent 485920 041ad5b49e4fdf72fe7ba1bcf6d729f3985b2ebf
child 546148 3043c1bd5c2d17f69e4b05ed6de921a0842caaf9
push id45877
push userbmo:fbraun@mozilla.com
push dateFri, 17 Feb 2017 09:58:50 +0000
reviewerssmaug
bugs1337186, 386782
milestone54.0a1
Bug 1337186 - rm trailing whitespaces from navigation/test_bug386782 r=smaug MozReview-Commit-ID: 3MLyDfWrE6X
docshell/test/navigation/test_bug386782.html
--- a/docshell/test/navigation/test_bug386782.html
+++ b/docshell/test/navigation/test_bug386782.html
@@ -3,24 +3,24 @@
 <!--
 https://bugzilla.mozilla.org/show_bug.cgi?id=386782
 -->
 <head>
   <title>Test for Bug 386782</title>
   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
-  
+
   <script>
 
     // This tests if we can load a document whose root is in designMode,
     // edit it, navigate to a new page, navigate back, still edit, and still
     // undo/redo. Note that this is different from the case where the
     // designMode document is in a frame inside the window, as this means
-    // the editable region is not in the root docshell (a less complicated case).  
+    // the editable region is not in the root docshell (a less complicated case).
 
     var gTests = [
       {
         // <html><body><p>designModeDocument</p></body></html>
         url: "file_bug386782_designmode.html",
         name: 'designModeNavigate',
         onload(doc) { doc.designMode = "on"; },
         expectedBodyBeforeEdit: '<p>designModeDocument</p>',
@@ -31,22 +31,22 @@ https://bugzilla.mozilla.org/show_bug.cg
         // <html><body contentEditable="true"><p>contentEditable</p></body></html>
         url: "file_bug386782_contenteditable.html",
         name: 'contentEditableNavigate',
         expectedBodyBeforeEdit: '<p>contentEditable</p>',
         expectedBodyAfterEdit:  'EDITED <br><p>contentEditable</p>',
         expectedBodyAfterSecondEdit: 'EDITED TWICE <br><p>contentEditable</p>',
       }
     ];
-    
+
     var gTestNum = -1;
     var gTest = null;
-    
+
     window.onload = goNext();
- 
+
     function goNext() {
       gTestNum++;
       if (gTestNum >= gTests.length) {
         SimpleTest.finish();
         return;
       }
       gTest = gTests[gTestNum];
       gTest.window = window.open(gTest.url, gTest.name, "width=500,height=500");
@@ -67,17 +67,17 @@ https://bugzilla.mozilla.org/show_bug.cg
       // a bit longer; the doc hasn't had enough time to setup its editor.
       is(gTest.window.document.body.innerHTML, gTest.expectedBodyBeforeEdit, "Is doc setup yet");
       sendString('EDITED ', gTest.window);
       is(gTest.window.document.body.innerHTML, gTest.expectedBodyAfterEdit, "Editing failed.");
 
       gTest.window.location = 'about:blank';
       SimpleTest.waitForFocus(goBack, gTest.window);
     }
-    
+
     function goBack() {
       window.onmessage = function(e) {
         window.onmessage = null;
         // Skip the test if the page is not loaded from the bf-cache when going back.
         if (e.data.persisted) {
           checkStillEditable();
         } else {
           gTest.window.close();
@@ -101,32 +101,31 @@ https://bugzilla.mozilla.org/show_bug.cg
 
       // Check that we can still edit the page.
       gTest.window.document.body.focus();
       sendString('TWICE ', gTest.window);
       is(gTest.window.document.body.innerHTML, gTest.expectedBodyAfterSecondEdit, "Can we still edit?");
 
       gTest.window.close();
       goNext();
-      
+
     }
-    
+
   </script>
-  
+
 </head>
 <body>
 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=386782">Mozilla Bug 386782</a>
 <p id="display"></p>
 <div id="content" style="display: none">
-  
+
 </div>
 <pre id="test">
 <script class="testbody" type="text/javascript">
 
 /** Test for Bug 386782 **/
 
 SimpleTest.waitForExplicitFinish();
 
 </script>
 </pre>
 </body>
 </html>
-