-
Notifications
You must be signed in to change notification settings - Fork 3.4k
IndexedDB: test a self-removing 'complete' handler. #15822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
IndexedDB: test a self-removing 'complete' handler. #15822
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the test! Turning regression tests for implementation bugs into a shared quality foundation for the platform is great.
}; | ||
tx.addEventListener('complete', complete); | ||
const store = tx.objectStore(STORE); | ||
store.get(0).addEventListener("success", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs t.step_func
e74b542
to
4481db9
Compare
Thanks for the review! I think I got to all of the suggestions. The one thing I didn't do was to use one of the more framework-y helpers, since this code is testing a buggy event listener implementation, but those helpers add listeners for various things themselves and I'm worried it might wind up not tickling the original bug if it's too far removed from the reproducer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few more really minor things. Thanks again!
At least one mocking implementation has a bug that this code tickles - see dumbmatter/fakeIndexedDB#26. Since I'd already reduced it down to a few lines of code, it might as well become a WPT.
4481db9
to
4f60f62
Compare
Ping. I think I've addressed all the comments. I dunno what's up with Taskcluster being red, though. |
Ping? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; sorry about forgetting about this and thanks for pinging.
Might need a rebase... |
At least one mocking implementation has a bug that this code tickles -
see dumbmatter/fakeIndexedDB#26. Since I'd already reduced it down to
a few lines of code, it might as well become a WPT.