| Index: chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js
|
| diff --git a/chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js b/chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js
|
| index 3cb752d05f75c7754e0770e41ae471cb7ffe404e..e3ba1d6ef705d8e9be9ab6a54bcafca377c8e80e 100644
|
| --- a/chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js
|
| +++ b/chrome/test/data/extensions/api_test/input_ime_nonchromeos/background.js
|
| @@ -32,6 +32,10 @@ chrome.test.runTests([
|
| chrome.test.assertTrue(!!win);
|
| chrome.test.assertTrue(win instanceof Window);
|
| chrome.test.assertFalse(win.document.webkitHidden);
|
| + // Test for security origin.
|
| + // If security origin is not correctly set, there will be securtiy
|
| + // exceptions when accessing DOM or add event listeners.
|
| + win.addEventListener('unload', function() {});
|
| chrome.test.succeed();
|
| });
|
| },
|
| @@ -40,7 +44,12 @@ chrome.test.runTests([
|
| chrome.input.ime.createWindow(options, function(win) {
|
| chrome.test.assertNoLastError()
|
| chrome.test.assertTrue(!!win);
|
| + chrome.test.assertTrue(win instanceof Window);
|
| chrome.test.assertFalse(win.document.webkitHidden);
|
| + // test for security origin.
|
| + // If security origin is not correctly set, there will be securtiy
|
| + // exceptions when accessing DOM or add event listeners.
|
| + win.addEventListener('unload', function() {});
|
| chrome.test.succeed();
|
| });
|
| }
|
|
|