blob: bac248f665b20ea28079086a33e03a527142baad [file] [log] [blame]
[email protected]c107d492012-01-30 17:59:161// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]c7ad50f2009-09-11 06:28:152// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/extensions/extension_apitest.h"
[email protected]f2cb3cf2013-03-21 01:40:536#include "net/dns/mock_host_resolver.h"
[email protected]c7ad50f2009-09-11 06:28:157
jambb11ed742017-05-01 17:27:598class JavscriptApiTest : public ExtensionApiTest {
9 public:
10 void SetUpOnMainThread() override {
11 ExtensionApiTest::SetUpOnMainThread();
12 host_resolver()->AddRule("*", "127.0.0.1");
13 ASSERT_TRUE(StartEmbeddedTestServer());
14 }
15};
[email protected]c7ad50f2009-09-11 06:28:1516
jambb11ed742017-05-01 17:27:5917// If crashing, mark disabled and update http://crbug.com/63589.
18IN_PROC_BROWSER_TEST_F(JavscriptApiTest, JavaScriptURLPermissions) {
[email protected]ad6530c2009-12-17 19:43:5619 ASSERT_TRUE(RunExtensionTest("tabs/javascript_url_permissions")) << message_;
[email protected]c7ad50f2009-09-11 06:28:1520}
limasdf7efa2aa2015-07-20 17:31:0021
jambb11ed742017-05-01 17:27:5922IN_PROC_BROWSER_TEST_F(JavscriptApiTest, JavasScriptEncodedURL) {
limasdf7efa2aa2015-07-20 17:31:0023 ASSERT_TRUE(RunExtensionTest("tabs/javascript_url_encoded")) << message_;
24}