mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
![whesse@google.com](/assets/img/avatar_default.png)
BUG= Review URL: https://codereview.chromium.org//702673002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41492 260f80e4-7a28-3924-810f-c04153c831b5
24 lines
703 B
Dart
24 lines
703 B
Dart
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
library sample_test;
|
|
import 'package:unittest/unittest.dart';
|
|
import 'package:unittest/html_config.dart';
|
|
import 'dart:_chrome' as _chrome;
|
|
|
|
main() {
|
|
useHtmlConfiguration();
|
|
test('access', () {
|
|
var window = _chrome.app.window;
|
|
expect(window is _chrome.WindowModule, true);
|
|
});
|
|
|
|
test('fails from browser', () {
|
|
// APIs should not work in standard browser apps.
|
|
expect(() {
|
|
_chrome.app.window.create('IntentionallyMissingFile.html');
|
|
}, throws);
|
|
});
|
|
}
|