Bug 993137 - Make color picker tests less fragile. r=mounir
authorJan Keromnes <janx@linux.com>
Sat, 15 Nov 2014 03:11:00 +0100
changeset 232197 d08b388c879a0b003129293f64ef2c67769b44ab
parent 232196 c386915cdeda12e86236d529829052a21a444851
child 232198 d5153ab08ca46e33ef2feabd3d3202017654e9a8
push id7326
push userbhearsum@mozilla.com
push dateFri, 28 Nov 2014 15:58:42 +0000
treeherdermozilla-aurora@d3a3b2a0f2f8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmounir
bugs993137
milestone36.0a1
Bug 993137 - Make color picker tests less fragile. r=mounir
dom/html/test/forms/test_input_color_picker_popup.html
dom/html/test/forms/test_input_color_picker_update.html
--- a/dom/html/test/forms/test_input_color_picker_popup.html
+++ b/dom/html/test/forms/test_input_color_picker_popup.html
@@ -4,16 +4,17 @@
 https://bugzilla.mozilla.org/show_bug.cgi?id=885996
 -->
 <head>
   <meta charset="utf-8">
   <title>Test for Bug 1234567</title>
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
+  <style> body { font-family: serif } </style>
   <script type="application/javascript;version=1.8">
 
   /** Test the behaviour of the <input type='color'> when clicking on it from
       different ways. **/
 
   SimpleTest.waitForExplicitFinish();
 
   var MockColorPicker = SpecialPowers.MockColorPicker;
--- a/dom/html/test/forms/test_input_color_picker_update.html
+++ b/dom/html/test/forms/test_input_color_picker_update.html
@@ -4,16 +4,17 @@
 https://bugzilla.mozilla.org/show_bug.cgi?id=885996
 -->
 <head>
   <meta charset="utf-8">
   <title>Test for Bug 1234567</title>
   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
   <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
+  <style> body { font-family: serif } </style>
   <script type="application/javascript;version=1.8">
 
   /** Test that update() modifies the element value such as done() when it is
    * not called as a concellation.
    */
 
   SimpleTest.waitForExplicitFinish();