| OLD | NEW |
| (Empty) |
| 1 <script> | |
| 2 // System API test | |
| 3 // Run with browser_tests --gtest_filter=ExtensionApiTest.SystemApi | |
| 4 | |
| 5 function expect(expected, message) { | |
| 6 return chrome.test.callbackPass(function(value) { | |
| 7 chrome.test.assertEq(expected, value, message); | |
| 8 }); | |
| 9 } | |
| 10 | |
| 11 chrome.test.runTests([ | |
| 12 function getIncognitoModeAvailabilityTest() { | |
| 13 chrome.systemPrivate.getIncognitoModeAvailability(expect( | |
| 14 'disabled', | |
| 15 "Pref `chrome.system.getIncognitoModeAvailability` is expected to " + | |
| 16 "return 'disabled'")); | |
| 17 }, | |
| 18 ]); | |
| 19 </script> | |
| OLD | NEW |