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

Side by Side Diff: tests/_chrome/sample_test.dart

Issue 2976313002: Delete old tests that aren't used and/or useful any more. (Closed)
Patch Set: Resurrect dummy_compiler_test and recursive_import_test. Created 3 years, 5 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
OLDNEW
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 library sample_test;
6
7 import 'package:unittest/unittest.dart';
8 import 'package:unittest/html_config.dart';
9 import 'dart:_chrome' as _chrome;
10
11 main() {
12 useHtmlConfiguration();
13 test('access', () {
14 var window = _chrome.app.window;
15 expect(window is _chrome.WindowModule, true);
16 });
17
18 test('fails from browser', () {
19 // APIs should not work in standard browser apps.
20 expect(() {
21 _chrome.app.window.create('IntentionallyMissingFile.html');
22 }, throws);
23 });
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698