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

Unified Diff: ios/web/public/test/js_test_util.h

Issue 2286773002: [ios] Use new JS execution API in browsing data partitioning test. (Closed)
Patch Set: Make GetLocalStorageItem return id. Created 4 years, 4 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 | « ios/web/browser_state_web_view_partition_inttest.mm ('k') | ios/web/public/test/js_test_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/js_test_util.h
diff --git a/ios/web/public/test/js_test_util.h b/ios/web/public/test/js_test_util.h
index 2cc2c1e7b8db02f088c55f779f87a77a17230621..ea21a5098a0ed6ab97ea5962312a2a35438af346 100644
--- a/ios/web/public/test/js_test_util.h
+++ b/ios/web/public/test/js_test_util.h
@@ -26,6 +26,11 @@ id ExecuteJavaScript(CRWJSInjectionManager* manager, NSString* script);
id ExecuteJavaScript(CRWJSInjectionReceiver* receiver, NSString* script);
// Executes JavaScript on |web_view| and returns the result as an id.
+// |error| can be null and will be updated only if script execution fails.
+id ExecuteJavaScript(WKWebView* web_view, NSString* script, NSError** error);
+
+// Executes JavaScript on |web_view| and returns the result as an id.
+// Fails if there was an error during script execution.
id ExecuteJavaScript(WKWebView* web_view, NSString* script);
} // namespace web
« no previous file with comments | « ios/web/browser_state_web_view_partition_inttest.mm ('k') | ios/web/public/test/js_test_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698