OLD | NEW |
---|---|
(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 can access the chrome.storage | |
not at google - send to devlin
2014/07/18 20:31:35
any reason why you couldn't make this part of the
ericzeng
2014/07/18 21:43:46
Nope
| |
7 // API, a privileged extension API. | |
8 function guestViewCanAccessStorage() { | |
9 chrome.test.listenOnce(chrome.storage.onChanged, function(change) { | |
10 chrome.test.assertEq(42, change.test.newValue); | |
11 }); | |
12 | |
13 var extensionoptions = document.createElement('extensionoptions'); | |
14 extensionoptions.setAttribute('extension', chrome.runtime.id); | |
15 document.body.appendChild(extensionoptions); | |
16 } | |
17 ]); | |
OLD | NEW |