Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1110)

Side by Side Diff: chrome/browser/extensions/app_window_overrides_browsertest.cc

Issue 1716513002: [Extensions] Update web API cloberring for platform apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // 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_browsertest.h"
6 #include "extensions/test/result_catcher.h"
7
8 namespace extensions {
9
10 using AppWindowRestrictedApisBrowserTest = ExtensionBrowserTest;
11
12 // Test that the window events like onbeforeunload event are correctly
13 // clobbered.
14 IN_PROC_BROWSER_TEST_F(AppWindowRestrictedApisBrowserTest, UnloadEvents) {
15 ResultCatcher catcher;
16 ASSERT_TRUE(LoadExtension(
17 test_data_dir_.AppendASCII("app_forbidden_apis/onbeforeunload")));
18 ASSERT_TRUE(catcher.GetNextResult());
19 }
20
21 // Test that Document apis like document.write are correctly clobbered.
22 IN_PROC_BROWSER_TEST_F(AppWindowRestrictedApisBrowserTest, DocumentApis) {
23 ResultCatcher catcher;
24 ASSERT_TRUE(LoadExtension(
25 test_data_dir_.AppendASCII("app_forbidden_apis/document_apis")));
26 ASSERT_TRUE(catcher.GetNextResult());
27 }
28
29 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698