| Index: chrome/test/data/extensions/api_test/page_capture/test.js
|
| diff --git a/chrome/test/data/extensions/api_test/page_capture/test.js b/chrome/test/data/extensions/api_test/page_capture/test.js
|
| index e51a99afe5e18d3e74b9b7c88175180a93d534b6..bc911ebbcefd75fe026a8eeb402723054a1e8e56 100644
|
| --- a/chrome/test/data/extensions/api_test/page_capture/test.js
|
| +++ b/chrome/test/data/extensions/api_test/page_capture/test.js
|
| @@ -3,7 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| // API test for chrome.extension.pageCapture.
|
| -// browser_tests.exe --gtest_filter=ExtensionApiTest.PageCapture
|
| +// browser_tests.exe --gtest_filter=ExtensionPageCaptureApiTest.*
|
|
|
| const assertEq = chrome.test.assertEq;
|
| const assertTrue = chrome.test.assertTrue;
|
| @@ -31,6 +31,11 @@ chrome.test.getConfig(function(config) {
|
| waitForCurrentTabLoaded(function() {
|
| chrome.pageCapture.saveAsMHTML({ "tabId": tab.id },
|
| function(data) {
|
| + if (config.customArg == "REQUEST_DENIED") {
|
| + chrome.test.assertLastError("User denied request.");
|
| + chrome.test.notifyPass();
|
| + return;
|
| + }
|
| assertEq(undefined, chrome.runtime.lastError);
|
| assertTrue(data != null);
|
| // It should contain few KBs of data.
|
|
|