Chromium Code Reviews| 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 function cannotEmbedInvalidExtensionId() { | |
| 7 var done = chrome.test.callbackAdded(); | |
| 8 var extensionoptions = document.createElement('extensionoptions'); | |
| 9 extensionoptions.addEventListener('createfailed', function() { | |
| 10 document.body.removeChild(extensionoptions); | |
| 11 done(); | |
| 12 }); | |
| 13 extensionoptions.addEventListener('load', function () { | |
| 14 document.body.removeChild(extensionoptions); | |
| 15 chrome.test.fail(); | |
| 16 }); | |
| 17 extensionoptions.setAttribute('extension', | |
| 18 'thisisprobablynotrealextensionid'); | |
| 19 document.body.appendChild(extensionoptions); | |
| 20 }, | |
| 21 | |
| 22 function cannotEmbedSelfIfNoOptionsPage() { | |
| 23 var done = chrome.test.callbackAdded(); | |
| 24 var extensionoptions = document.createElement('extensionoptions'); | |
| 25 extensionoptions.addEventListener('createfailed', function() { | |
| 26 document.body.removeChild(extensionoptions); | |
| 27 done(); | |
| 28 }); | |
| 29 extensionoptions.addEventListener('load', function () { | |
| 30 document.body.removeChild(extensionoptions); | |
| 31 chrome.test.fail(); | |
| 32 }); | |
| 33 extensionoptions.setAttribute('extension', chrome.runtime.id); | |
| 34 document.body.appendChild(extensionoptions); | |
|
not at google - send to devlin
2014/08/06 21:51:10
these are basically the same test. you could have
ericzeng
2014/08/06 23:49:24
Done.
| |
| 35 } | |
| 36 ]); | |
| OLD | NEW |