Remove testRunner references in wpt tests

These references have no effect, so remove them.

Bug: 761391
Change-Id: I85df5d4520f9d6b4719c86a903a22360df3ae421
Reviewed-on: https://chromium-review.googlesource.com/665338
Reviewed-by: Philip Jägenstedt <foolip@chromium.org>
Reviewed-by: Robert Ma <robertma@chromium.org>
Commit-Queue: Philip Jägenstedt <foolip@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505666}
diff --git a/css-paint-api/valid-image-after-load.html b/css-paint-api/valid-image-after-load.html
index 1fe2407..73557d2 100644
--- a/css-paint-api/valid-image-after-load.html
+++ b/css-paint-api/valid-image-after-load.html
@@ -23,10 +23,6 @@
 </script>
 
 <script>
-if (window.testRunner) {
-  testRunner.waitUntilDone();
-}
-
 var blob = new Blob([document.getElementById('code').textContent],
                     {type: 'text/javascript'});
 var frame_cnt = 0;
diff --git a/css-paint-api/valid-image-before-load.html b/css-paint-api/valid-image-before-load.html
index 2232cd4..483d16c 100644
--- a/css-paint-api/valid-image-before-load.html
+++ b/css-paint-api/valid-image-before-load.html
@@ -23,10 +23,6 @@
 </script>
 
 <script>
-if (window.testRunner) {
-  testRunner.waitUntilDone();
-}
-
 var el = document.getElementById('output');
 el.style.backgroundImage = 'paint(green)';
 
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001.html
index 624a7bb..795bf6b 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001.html
@@ -172,8 +172,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001a.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001a.html
index e437228..6811313 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001a.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001a.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001b.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001b.html
index 048306e..9701391 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001b.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001b.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001c.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001c.html
index 352b68a..4a18f32 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001c.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001c.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001d.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001d.html
index 8050aa5..95e7146 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001d.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001d.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001e.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001e.html
index 31f17bc..7347b67 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001e.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001e.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001f.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001f.html
index 02c66a8..35dbaca 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001f.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001f.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001g.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001g.html
index a4f9525..b7730a6 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001g.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001g.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001h.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001h.html
index f10633b..adca0e9 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001h.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001h.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001i.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001i.html
index 62073f0..6fb680e 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001i.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001i.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001j.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001j.html
index fbc401c..a9a4a62 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001j.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001j.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001k.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001k.html
index d0ea4cc..931cefc 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001k.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001k.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001l.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001l.html
index de00ffb..f3482a1 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001l.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001l.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001m.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001m.html
index 1c39d49..e686838 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001m.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001m.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001n.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001n.html
index 52ea609..84ac183 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001n.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001n.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001o.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001o.html
index 85c1f99..82599c9 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001o.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001o.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001p.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001p.html
index 613292a..653dc37 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001p.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001p.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001q.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001q.html
index c2fe4a5..070f08b 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001q.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001q.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001r.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001r.html
index 5351510..86ffb3f 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001r.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001r.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001s.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001s.html
index bcfeb62..24cf31e 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001s.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001s.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001t.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001t.html
index e0e93ba..c5c9ca3 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001t.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001t.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001u.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001u.html
index c4e381a..c49d1ef 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001u.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001u.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001v.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001v.html
index a20c54f..01bc8f8 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001v.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001v.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001w.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001w.html
index d7f3211..27b00d9 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001w.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001w.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001x.html b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001x.html
index fb79a2a..0ec5d97 100644
--- a/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001x.html
+++ b/css/css-writing-modes-3/orthogonal-parent-shrink-to-fit-001x.html
@@ -80,8 +80,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/css/css-writing-modes-3/tools/generators/orthogonal-parent-shrink-to-fit.ejs b/css/css-writing-modes-3/tools/generators/orthogonal-parent-shrink-to-fit.ejs
index 987c4a1..b395a7c 100644
--- a/css/css-writing-modes-3/tools/generators/orthogonal-parent-shrink-to-fit.ejs
+++ b/css/css-writing-modes-3/tools/generators/orthogonal-parent-shrink-to-fit.ejs
@@ -121,8 +121,6 @@
             }
         }, title);
     });
-    if (window.testRunner)
-        container.style.display = "none";
     done();
 }
 </script>
diff --git a/service-workers/service-worker/fetch-frame-resource.https.html b/service-workers/service-worker/fetch-frame-resource.https.html
index d7abd00..2168e3e 100644
--- a/service-workers/service-worker/fetch-frame-resource.https.html
+++ b/service-workers/service-worker/fetch-frame-resource.https.html
@@ -11,10 +11,6 @@
 var path = base_path() + 'resources/fetch-access-control.py';
 var host_info = get_host_info();
 
-if (window.testRunner) {
-  testRunner.setCanOpenWindows();
-}
-
 function getLoadedObject(win, contentFunc, closeFunc) {
   return new Promise(function(resolve) {
       function done(contentString) {