RESOLVED FIXED39748
Clean up IndexedDB layout tests
https://bugs.webkit.org/show_bug.cgi?id=39748
Summary Clean up IndexedDB layout tests
Jeremy Orlow
Reported 2010-05-26 10:08:20 PDT
Clean up IndexedDB layout tests
Attachments
Patch (14.12 KB, patch)
2010-05-26 10:11 PDT, Jeremy Orlow
no flags
Patch (14.10 KB, patch)
2010-05-27 05:41 PDT, Jeremy Orlow
no flags
Patch (14.82 KB, patch)
2010-05-27 06:33 PDT, Jeremy Orlow
steveblock: review+
Jeremy Orlow
Comment 1 2010-05-26 10:11:28 PDT
Andrei Popescu
Comment 2 2010-05-27 04:37:24 PDT
I think you have some indentation errors in LayoutTests/storage/indexeddb/resources/shared.js : lines 34, 43 and 52. Also, do you need a new line at the end of file?
Jeremy Orlow
Comment 3 2010-05-27 05:41:42 PDT
Andrei Popescu
Comment 4 2010-05-27 05:47:12 PDT
LGTM
Steve Block
Comment 5 2010-05-27 06:10:56 PDT
Comment on attachment 57227 [details] Patch LayoutTests/storage/indexeddb/resources/shared.js:4 + layoutTestController.dumpAsText(); This isn't needed - it's in js-test-pre.js LayoutTests/storage/indexeddb/resources/shared.js:67 + \ No newline at end of file newline LayoutTests/storage/indexeddb/resources/shared.js:8 + shouldBeTrue("'indexedDB' in window"); Is this needed here? It seems like it should be tested in the fast/dom/Window/window-properties* tests. If we remove this, we can remove the init() function and just call layoutTestController.waitUntilDone() directly.
Jeremy Orlow
Comment 6 2010-05-27 06:19:10 PDT
(In reply to comment #5) > (From update of attachment 57227 [details]) > LayoutTests/storage/indexeddb/resources/shared.js:4 > + layoutTestController.dumpAsText(); > This isn't needed - it's in js-test-pre.js done > LayoutTests/storage/indexeddb/resources/shared.js:67 > + \ No newline at end of file > newline done > LayoutTests/storage/indexeddb/resources/shared.js:8 > + shouldBeTrue("'indexedDB' in window"); > Is this needed here? It seems like it should be tested in the fast/dom/Window/window-properties* tests. Since it's behind a compile flag, the window properties tests skip over indexedDB..and that'll be true until the majority of the tests enable it. Also tests like dom storage run this check every single time. But I guess we could split it into its own test. > If we remove this, we can remove the init() function and just call layoutTestController.waitUntilDone() directly. ...with the if statement, but OK...we can do that.
Jeremy Orlow
Comment 7 2010-05-27 06:33:58 PDT
Steve Block
Comment 8 2010-05-27 06:37:10 PDT
Comment on attachment 57236 [details] Patch LayoutTests/storage/indexeddb/script-tests/idb-database-request.js:3 + layoutTestController.waitUntilDone(); Actually, I meant that you could leave this call in shared.js, but not in a function, so as to avoid the need to call that function from each test's JS file.
Jeremy Orlow
Comment 9 2010-05-27 06:42:56 PDT
Note You need to log in before you can comment on or make changes to this bug.