Bug 1163257 - Only fail test_bug1160724.xul if we get a console warning about parsing 'transform'. r=dbaron, a=test-only
authorCameron McCormack <cam@mcc.id.au>
Wed, 08 Jul 2015 16:53:45 +1000
changeset 275297 e64d63dd4b4d09c380c64dd85674fb014a3dee2d
parent 275296 2f025dfee1f4455057b21e7053d87b4f92849129
child 275298 738fc6e538261339fe007dd8cbd0122aced7f942
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron, test-only
bugs1163257, 1160724
milestone40.0
Bug 1163257 - Only fail test_bug1160724.xul if we get a console warning about parsing 'transform'. r=dbaron, a=test-only
layout/style/test/chrome/test_bug1160724.xul
--- a/layout/style/test/chrome/test_bug1160724.xul
+++ b/layout/style/test/chrome/test_bug1160724.xul
@@ -28,17 +28,19 @@ https://bugzilla.mozilla.org/show_bug.cg
       if (!iid.equals(Components.interfaces.nsISupports) &&
           !iid.equals(Components.interfaces.nsIConsoleListener)) {
         throw Components.results.NS_NOINTERFACE;
       }
       return this;
     },
 
     observe(msg) {
-      errorLogged = true;
+      if (msg.toString().indexOf("transform") != -1) {
+        errorLogged = true;
+      }
     }
   };
   serv.registerListener(listener);
   ]]>
   </script>
 
   <vbox id="w" style="-moz-binding: url(#binding)">
     <vbox id="v" style="display: none; transform: translateY(var(--test));" />