Bug 1210717 fix: make the test actually test reasonable things. r=jgraham

This commit is contained in:
Boris Zbarsky 2016-04-04 12:15:39 -04:00
parent 2acc650849
commit c8663502fd
3 changed files with 4 additions and 11 deletions

View File

@ -1,10 +0,0 @@
[event_setattribute.html]
type: testharness
disabled:
if e10s and (os == "linux"): https://bugzilla.mozilla.org/show_bug.cgi?id=1210717
[localStorage mutations fire StorageEvents that are caught by the event listener attached via setattribute.]
expected: FAIL
[sessionStorage mutations fire StorageEvents that are caught by the event listener attached via setattribute.]
expected: FAIL

View File

@ -10,6 +10,9 @@ testStorages(function(storageString) {
function step0(msg)
{
iframe.onload = t.step_func(step1);
// Null out the existing handler eventTestHarness.js set up;
// otherwise this test won't be testing much of anything useful.
iframe.contentWindow.onstorage = null;
iframe.src = "resources/event_setattribute_handler.html";
}

View File

@ -8,7 +8,7 @@ function handleStorageEvent(e) {
window.parent.storageEventList.push(e);
}
document.body.setAttribute("onstorage", "handleStorageEvent(window.event);");
document.body.setAttribute("onstorage", "handleStorageEvent(event);");
</script>
</body>