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 and write to storage. | |
lazyboy
2014/07/18 19:55:40
nit: Also add that chrome.storage is a privileged
ericzeng
2014/07/18 20:23:08
Done.
| |
7 function guestViewCanAccessStorage() { | |
8 chrome.test.listenOnce(chrome.storage.onChanged, function(change) { | |
9 chrome.test.assertEq(42, change.test.newValue); | |
10 }); | |
11 | |
12 var extensionoptions = document.createElement('extensionoptions'); | |
13 extensionoptions.setAttribute('extension', chrome.runtime.id); | |
14 document.body.appendChild(extensionoptions); | |
15 } | |
16 ]); | |
OLD | NEW |