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

Side by Side Diff: chrome/test/data/extensions/webui/receives_extension_options_on_close.js

Issue 490783002: Handle closing web contents in ExtensionOptionsGuest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 unified diff | Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/extension_options/close_self/options.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 // out/Debug/browser_tests
6 // --gtest_filter=ExtensionWebUITest.ReceivesExtensionOptionsOnClose
7 if (!chrome || !chrome.test || !chrome.test.sendMessage) {
8 console.error('chrome.test.sendMessage is unavailable on ' +
9 document.location.href);
10 domAutomationController.send(false);
11 return;
12 }
13
14 chrome.test.sendMessage('ready', function(reply) {
15 var extensionoptions = document.createElement('extensionoptions');
16 extensionoptions.onclose = function() {
17 chrome.test.sendMessage('onclose received');
18 };
19 extensionoptions.setAttribute('extension', reply);
20 document.body.appendChild(extensionoptions);
21 });
22
23 domAutomationController.send(true);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/extension_options/close_self/options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698