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

Unified Diff: chrome/test/data/extensions/api_test/executescript/navigation_race/test.js

Issue 1628423002: Add frameId to chrome.tabs.executeScript/insertCSS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permissiondata-remove-process_id
Patch Set: Remove unused include from rebase Created 4 years, 10 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
Index: chrome/test/data/extensions/api_test/executescript/navigation_race/test.js
diff --git a/chrome/test/data/extensions/api_test/executescript/navigation_race/test.js b/chrome/test/data/extensions/api_test/executescript/navigation_race/test.js
index 02bd14b9d9d0ab7bc296a6e8916026037124c284..fb4f7e0166bdccbad7ae3da6f47b1c021a195d20 100644
--- a/chrome/test/data/extensions/api_test/executescript/navigation_race/test.js
+++ b/chrome/test/data/extensions/api_test/executescript/navigation_race/test.js
@@ -17,9 +17,10 @@ chrome.test.getConfig(function(config) {
// the script, so it's still showing a.com, where we don't have
// permission to run it.
if (chrome.runtime.lastError) {
- chrome.test.assertTrue(
- chrome.runtime.lastError.message.indexOf(
- 'Cannot access contents of the page.') == 0);
+ chrome.test.assertLastError(
+ 'Cannot access contents of url "' + urlA +
+ '". Extension manifest must request permission to access this ' +
+ 'host.');
chrome.test.notifyPass();
} else {
// If there were no errors, then the script did run, but it should
« no previous file with comments | « chrome/test/data/extensions/api_test/executescript/frame_id/test.js ('k') | extensions/browser/api/execute_code_function.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698