Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Issue 2449563002: [IndexedDB] Add Observer Tests (Closed)

Created:
4 years, 1 month ago by dmurph
Modified:
4 years, 1 month ago
Reviewers:
haraken, cmumford
CC:
chromium-reviews, blink-reviews, jsbell+idb_chromium.org, cmumford
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[IndexedDB] Add IDB Observer Tests Adding pipelined IDB Observer tests. The pipeline is: 1. Init databases, 2. Add observers & start observer tests, 3. Perform database actions (in two stages). These are split up so they can be executed in workers or in the same frame. This does not include all cases where we want to throw an exception, that will be in a follow up patch. Current Implementation and Future Scope: https://goo.gl/Y2dobn Reference: https://github.com/WICG/indexed-db-observers/blob/gh-pages/EXPLAINER.md BUG=609934 Committed: https://crrev.com/1bf48eaa4831b5fd0a78bcb5d9a36b63d2a8cf49 Cr-Commit-Position: refs/heads/master@{#428091}

Patch Set 1 #

Patch Set 2 : Finished suite coverage #

Total comments: 2

Patch Set 3 : nits and clarified [init] test name #

Patch Set 4 : switched init to same pattern as other files & included expectations #

Patch Set 5 : refactored to remove test dependencies #

Patch Set 6 : fixed refactor of indexeddb_test #

Patch Set 7 : Fixed errors in other tests, and marked observer tests as long #

Unified diffs Side-by-side diffs Delta from patch set Stats (+849 lines, -54 lines) Patch
A third_party/WebKit/LayoutTests/storage/indexeddb/observer-frame.html View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/storage/indexeddb/observer-workers.html View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/storage/indexeddb/resources/generic-idb-operations.js View 1 1 chunk +15 lines, -34 lines 0 comments Download
M third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer.js View 1 4 chunks +4 lines, -4 lines 0 comments Download
A third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer-actions.js View 1 2 3 4 1 chunk +83 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer-helpers.js View 1 2 3 4 5 6 1 chunk +75 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer-tests.js View 1 2 3 4 5 6 1 chunk +531 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/storage/indexeddb/resources/promise-idb.js View 1 2 3 4 1 chunk +77 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/storage/indexeddb/resources/testharness-helpers.js View 1 2 3 4 5 6 2 chunks +34 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBObservation.idl View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBObserver.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IndexedDBNames.in View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (24 generated)
dmurph
Hello Kentaro & Chris! I've refactored Palak's test patch here: https://codereview.chromium.org/2163213006/ In the following patch. ...
4 years, 1 month ago (2016-10-24 23:45:59 UTC) #3
haraken
(Chris should be a better reviewer for this one :-)
4 years, 1 month ago (2016-10-25 07:27:26 UTC) #4
cmumford
lgtm % small nit. Note: storage/indexeddb/observer-workers.html failed for me, but only once, and I was ...
4 years, 1 month ago (2016-10-25 17:57:31 UTC) #5
dmurph
Thanks! https://codereview.chromium.org/2449563002/diff/20001/third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer-init.js File third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer-init.js (right): https://codereview.chromium.org/2449563002/diff/20001/third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer-init.js#newcode38 third_party/WebKit/LayoutTests/storage/indexeddb/resources/observer-init.js:38: var os2 = db.createObjectStore('store2'); On 2016/10/25 17:57:30, cmumford ...
4 years, 1 month ago (2016-10-25 18:23:51 UTC) #6
dmurph
On 2016/10/25 07:27:26, haraken wrote: > (Chris should be a better reviewer for this one ...
4 years, 1 month ago (2016-10-25 18:28:15 UTC) #7
haraken
On 2016/10/25 18:28:15, dmurph wrote: > On 2016/10/25 07:27:26, haraken wrote: > > (Chris should ...
4 years, 1 month ago (2016-10-25 18:29:47 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2449563002/40001
4 years, 1 month ago (2016-10-25 18:43:22 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/318699)
4 years, 1 month ago (2016-10-25 19:49:36 UTC) #16
dmurph
Hi Chris, Can you PTAL again? I did some changes to try to fix the ...
4 years, 1 month ago (2016-10-25 21:33:20 UTC) #18
dmurph
Hello again, After chatting with Josh I learned that I was doing bad things by ...
4 years, 1 month ago (2016-10-26 21:20:47 UTC) #22
cmumford
lgtm
4 years, 1 month ago (2016-10-27 16:12:50 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2449563002/120001
4 years, 1 month ago (2016-10-27 18:38:54 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-10-27 18:44:05 UTC) #36
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 19:01:43 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1bf48eaa4831b5fd0a78bcb5d9a36b63d2a8cf49
Cr-Commit-Position: refs/heads/master@{#428091}

Powered by Google App Engine
This is Rietveld 408576698