| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 | 2 |
| 3 var assertFalse = chrome.test.assertFalse; | 3 var assertFalse = chrome.test.assertFalse; |
| 4 var assertTrue = chrome.test.assertTrue; | 4 var assertTrue = chrome.test.assertTrue; |
| 5 var pass = chrome.test.callbackPass; | 5 var pass = chrome.test.callbackPass; |
| 6 | 6 |
| 7 var NO_TABS_PERMISSION = | 7 var NO_TABS_PERMISSION = |
| 8 "You do not have permission to use 'windows.getAll'."; | 8 "You do not have permission to use 'windows.getAll'."; |
| 9 | 9 |
| 10 chrome.test.runTests([ | 10 chrome.test.runTests([ |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 chrome.windows.getAll({populate: true}, function() { | 27 chrome.windows.getAll({populate: true}, function() { |
| 28 chrome.test.fail("Should not have tabs API permission."); | 28 chrome.test.fail("Should not have tabs API permission."); |
| 29 }); | 29 }); |
| 30 } catch (e) { | 30 } catch (e) { |
| 31 assertTrue(e.message.indexOf(NO_TABS_PERMISSION) == 0); | 31 assertTrue(e.message.indexOf(NO_TABS_PERMISSION) == 0); |
| 32 } | 32 } |
| 33 })); | 33 })); |
| 34 } | 34 } |
| 35 ]); | 35 ]); |
| 36 </script> | 36 </script> |
| OLD | NEW |