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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-storage-dom-access.php

Issue 2849903003: Fix suborigin dom storage test to wrap all asserts in test steps. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-storage-dom-access.php
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-storage-dom-access.php b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-storage-dom-access.php
index c63df4240c60e117c6c8beccf44f47d3326981a6..68a56ae526ee5e46c7e4d9327ae550a8415fcf85 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-storage-dom-access.php
+++ b/third_party/WebKit/LayoutTests/http/tests/security/suborigins/suborigin-storage-dom-access.php
@@ -34,13 +34,13 @@ async_test(make_storage_accessibility_test(sessionStorage),
function make_xorigin_test(storage_name, item_name) {
var storage = window[storage_name];
return function(test) {
- window.addEventListener('message', function(event) {
+ window.addEventListener('message', test.step_func(function(event) {
if (event.data != 'ready' && event.data.type == storage_name) {
assert_equals(event.data.value, null);
assert_equals(storage.getItem(item_name), null);
test.done();
}
- });
+ }));
};
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698