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

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

Issue 378783002: Initial implementation of the <extensionoptions> GuestView tag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle changing attribute values, prevent cross-extension options embedding 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 (c) 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 function createExtensionOptionsGuest() {
7 chrome.runtime.onMessage.addListener(function(message,
8 sender,
9 sendResponse) {
10 chrome.test.assertTrue(Window.pass);
11 chrome.test.assertTrue("hi" == message);
Devlin 2014/07/15 18:07:36 prefer single-line quotes in js files.
ericzeng 2014/07/15 20:23:55 Done.
12 chrome.test.pass();
13 });
14
15 var extensionoptions = document.createElement('extensionoptions');
16 extensionoptions.setAttribute('extension', chrome.runtime.id);
17 document.body.appendChild(extensionoptions);
18 console.log("<extensionoptions> created in test.js")
19 }
20 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698