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 326986 a07bf6b78039a0efd2483b7cebf21a700b244f93
parent 326985 5d01a67037fbb2b1dfec6f8388bedcfc5b429410
child 326987 5d560d039557beef1c9e145f2dc436c525d53ddf
push id6048
push userkmoir@mozilla.com
push dateMon, 06 Jun 2016 19:02:08 +0000
treeherdermozilla-beta@46d72a56c57d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1256210
milestone48.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 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>