Bug 1256210 - Part 3: Remove agent sheet by the end of test_additional_sheets.html. r=dbaron
authorCameron McCormack <cam@mcc.id.au>
Thu, 17 Mar 2016 13:17:10 +1100
changeset 312889 a07bf6b78039a0efd2483b7cebf21a700b244f93
parent 312888 5d01a67037fbb2b1dfec6f8388bedcfc5b429410
child 312890 5d560d039557beef1c9e145f2dc436c525d53ddf
push id9480
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 17:12:58 +0000
treeherdermozilla-aurora@0d6a91c76a9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1256210
milestone48.0a1
Bug 1256210 - Part 3: Remove agent sheet by the end of test_additional_sheets.html. r=dbaron
layout/style/test/test_additional_sheets.html
--- a/layout/style/test/test_additional_sheets.html
+++ b/layout/style/test/test_additional_sheets.html
@@ -291,20 +291,22 @@ function run()
 
   testStyleVsStyle(win, additionalAuthor, agent,
                      {AB:{rr:0, ii:1, ri:1, ir:0}, BA:{rr:0, ii:1, ri:1, ir:0}});
 
   testStyleVsStyle(win, additionalAuthor, additionalUser,
                    {AB:{rr:0, ii:1, ri:1, ir:0}, BA:{rr:0, ii:1, ri:1, ir:0}});
 
   // Bug 1228542
-  loadAndRegisterAuthorSheet(win, getStyle('rgb(255, 0, 0)'));
+  var url = getStyle('rgb(255, 0, 0)');
+  loadAndRegisterAuthorSheet(win, url);
   // Avoiding security exception...
   (new win.Function("document.open()"))();
   (new win.Function("document.close()"))();
+  unregisterAuthorSheet(win, url);
 
   SimpleTest.finish();
 }
 
 SimpleTest.waitForExplicitFinish();
 
 </script>
 </pre>