Bug 1330630 - Use "reftest-wait" to fix reftest fail for 315920-26.html. r=jeremychen
authorTing-Yu Lin <tlin@mozilla.com>
Thu, 12 Jan 2017 23:02:20 +0800
changeset 374256 0b5439723dcb396025bcd4d45781b5709ff5d357
parent 374205 eca7348f32d8410559e342bff1a7698ceb2e9a30
child 374257 50a921a0b78d908d64dd8a8ef96b9087702eea0f
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjeremychen
bugs1330630, 315920
milestone53.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
Bug 1330630 - Use "reftest-wait" to fix reftest fail for 315920-26.html. r=jeremychen Use "reftest-wait" to ensure the action in <body onload> is performed before taking the snapshot. MozReview-Commit-ID: 54pLjGIUheq
layout/reftests/bugs/315920-26.html
--- a/layout/reftests/bugs/315920-26.html
+++ b/layout/reftests/bugs/315920-26.html
@@ -1,20 +1,21 @@
 <!DOCTYPE html>
-<html>
+<html class="reftest-wait">
   <head>
     <style>
       span {color: red}
       #one:checked + span {color: green}
       #two:default + span {color: green}
     </style>
   </head>
 
   <body onload='document.getElementById("one").setAttribute("type", "checkbox");
-                document.getElementById("two").setAttribute("type", "checkbox");'>
+                document.getElementById("two").setAttribute("type", "checkbox");
+                document.documentElement.removeAttribute("class");'>
     <div>
       <input type="text" id="one" checked="checked"/>
       <span>Should be no red </span>
     </div>
     <div>
       <input type="text" id="two" checked="checked"/>
       <span>Should be no red </span>
     </div>