Summary: | js-test-post.js is not robust for asynchronous tests | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Steve Block <steveblock> | ||||
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | abarth, benm, commit-queue, darin, eric, mjs, steveblock, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Steve Block
2010-08-25 15:44:08 PDT
Created attachment 65493 [details]
Patch
Comment on attachment 65493 [details] Patch The change seems fine. > +isAllScriptParsed = true; I think that adding this new window property might affect tests that dump everything on the window object. Did you run all the scripts to test? I would name this variable postTestScriptWasParsed or wasPostTestScriptParsed. > + if (window.isFinishJSTestCalled) I would name this variable finishJSTestWasCalled or wasFinishJSTestCalled. > I think that adding this new window property might affect tests that dump everything on the window > object. Did you run all the scripts to test? Yes, I ran all tests. I guess none of them dump the window object asynchronously, ie after js-test-post.js has been parsed. > I would name this variable postTestScriptWasParsed or wasPostTestScriptParsed. > I would name this variable finishJSTestWasCalled or wasFinishJSTestCalled. Will do Committed r66201: <http://trac.webkit.org/changeset/66201> http://trac.webkit.org/changeset/66201 might have broken GTK Linux 32-bit Release Added GTK, Qt and Win expected results in http://trac.webkit.org/changeset/66212 |