| Index: chrome/test/data/extensions/webui/runtime_last_error.js
|
| diff --git a/chrome/test/data/extensions/webui/runtime_last_error.js b/chrome/test/data/extensions/webui/runtime_last_error.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..81fc571446ff93dbf1e61ee733396b1fa6c96eeb
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/webui/runtime_last_error.js
|
| @@ -0,0 +1,28 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// out/Debug/browser_tests --gtest_filter=ExtensionWebUITest.RuntimeLastError
|
| +
|
| +var success = true;
|
| +
|
| +if (!chrome.test.checkDeepEq({}, chrome.runtime)) {
|
| + console.error('Expected {}, Actual ' + JSON.stringify(chrome.runtime));
|
| + success = false;
|
| +}
|
| +
|
| +chrome.test.sendMessage('ping', function(reply) {
|
| + var expected = {
|
| + 'lastError': {
|
| + 'message': 'unknown host'
|
| + }
|
| + };
|
| + if (!chrome.test.checkDeepEq(expected, chrome.runtime)) {
|
| + console.error('Expected ' + JSON.stringify(expected) + ', ' +
|
| + 'Actual ' + JSON.stringify(chrome.runtime));
|
| + success = false;
|
| + }
|
| + chrome.test.sendMessage(success ? 'true' : 'false');
|
| +});
|
| +
|
| +domAutomationController.send(true);
|
|
|