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

Side by Side Diff: chrome/test/data/extensions/api_test/extension_options/embed_self/test.js

Issue 378783002: Initial implementation of the <extensionoptions> GuestView tag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove WIP test Created 6 years, 5 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
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 chrome.test.runTests([
6 // Tests if the <extensionoptions> guest view is successfully created. This
7 // test expects that the guest options page will add a {'pass': true} property
8 // to every Window and fire the runtime.onMessage event with a short message.
9 function createExtensionOptionsGuest() {
10 chrome.runtime.onMessage.addListener(
11 function(message, sender, sendResponse) {
12 var windows = chrome.extension.getViews();
13 for (var i = 0; i < windows.length; ++i) {
Devlin 2014/07/16 20:55:07 no brackets.
ericzeng 2014/07/16 22:27:38 Done.
14 chrome.test.assertTrue(windows[i].pass);
15 }
16 chrome.test.assertTrue('hi' == message);
17 chrome.test.succeed();
18 });
19
20 var extensionoptions = document.createElement('extensionoptions');
21 extensionoptions.setAttribute('extension', chrome.runtime.id);
22 document.body.appendChild(extensionoptions);
23 }
24 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698