Bug 82068

Summary: DumpRenderTree should clear window.sessionStorage between tests
Product: WebKit Reporter: Dave Michael <dmichael>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: abarth, ap, dpranke, eric, mitz, ossy, rniwa, simon.fraser, tony
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Dave Michael
Reported 2012-03-23 11:04:47 PDT
For the following bug (https://bugs.webkit.org/show_bug.cgi?id=32292), a new test (plugins/netscape-dom-access-and-reload.html) used the same sessionStorage variable name as another test (plugins/reloadplugins-and-pages.html). The second test failed because the variable was already set, causing the test to behave differently than expected. 32292 worked around it by using a distinct variable name, but it should probably be fixed in DumpRenderTree.
Attachments
Dave Michael
Comment 1 2012-03-23 11:34:19 PDT
(In reply to comment #0) > For the following bug (https://bugs.webkit.org/show_bug.cgi?id=32292) Sorry, I meant: https://bugs.webkit.org/show_bug.cgi?id=80428 >, a new test (plugins/netscape-dom-access-and-reload.html) used the same sessionStorage variable name as another test (plugins/reloadplugins-and-pages.html). The second test failed because the variable was already set, causing the test to behave differently than expected. > > 32292 worked around it by using a distinct variable name, but it should probably be fixed in DumpRenderTree. Make that 80428
Alexey Proskuryakov
Comment 2 2012-03-23 12:20:59 PDT
Seems reasonable. With tests running in random order, one cannot depend on sessionStorage being set by a previous test.
Note You need to log in before you can comment on or make changes to this bug.