mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Added some checks for the random orange in bug 578591.r=joe
This commit is contained in:
parent
0295fe77d3
commit
1a25380c15
@ -19,6 +19,9 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=435296
|
||||
// Boilerplate
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
// Assert that discarding isn't enabled, which might make this test go orange.
|
||||
ok(!getImagePref(DISCARD_ENABLED_PREF), "discarding should NOT be enabled here");
|
||||
|
||||
// We want to make sure d-o-d is enabled, since that's what we're testing
|
||||
var oldDODPref = getImagePref(DECODEONDRAW_ENABLED_PREF);
|
||||
setImagePref(DECODEONDRAW_ENABLED_PREF, true);
|
||||
@ -69,8 +72,8 @@ function tryToFinish()
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
// Set our onload handler
|
||||
window.onload = windowLoadHandler;
|
||||
// Set our onload handler, making sure we have focus
|
||||
window.onload = SimpleTest.waitForFocus(windowLoadHandler);
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
|
Loading…
Reference in New Issue
Block a user