Files
sdk/tests/_chrome/sample_test.dart
T
dgrove@google.com dcd741bd99 Move dart:chrome to dart:_chrome.
Turn off doc generation for dart:_chrome.

R=efortuna@google.com

Review URL: https://codereview.chromium.org//23654055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27861 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-24 23:52:16 +00:00

24 lines
694 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 '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/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('foo.html');
}, throws);
});
}