Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / extensions / webui / runtime_last_error.js
blob81fc571446ff93dbf1e61ee733396b1fa6c96eeb
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // out/Debug/browser_tests --gtest_filter=ExtensionWebUITest.RuntimeLastError
7 var success = true;
9 if (!chrome.test.checkDeepEq({}, chrome.runtime)) {
10 console.error('Expected {}, Actual ' + JSON.stringify(chrome.runtime));
11 success = false;
14 chrome.test.sendMessage('ping', function(reply) {
15 var expected = {
16 'lastError': {
17 'message': 'unknown host'
20 if (!chrome.test.checkDeepEq(expected, chrome.runtime)) {
21 console.error('Expected ' + JSON.stringify(expected) + ', ' +
22 'Actual ' + JSON.stringify(chrome.runtime));
23 success = false;
25 chrome.test.sendMessage(success ? 'true' : 'false');
26 });
28 domAutomationController.send(true);