| Index: chrome/test/data/extensions/api_test/runtime/open_options_page/test.js
|
| diff --git a/chrome/test/data/extensions/api_test/runtime/open_options_page/test.js b/chrome/test/data/extensions/api_test/runtime/open_options_page/test.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..471da1231649a5f03f665b0a3022cbd6ac4318d3
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/runtime/open_options_page/test.js
|
| @@ -0,0 +1,18 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// browser_tests --gtest_filter=ExtensionApiTest.OpenOptionsPage
|
| +
|
| +var assertEq = chrome.test.assertEq;
|
| +
|
| +function test() {
|
| + chrome.test.listenOnce(chrome.runtime.onMessage, function(m, sender) {
|
| + assertEq('success', m);
|
| + assertEq(chrome.runtime.id, sender.id);
|
| + assertEq(chrome.runtime.getURL('options.html'), sender.url);
|
| + });
|
| + chrome.runtime.openOptionsPage();
|
| +}
|
| +
|
| +chrome.test.runTests([test]);
|
|
|