blob: eb51d5cd65db88d8535ba9a2624f6e7b9b539dd3 [file] [log] [blame]
// 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);
});
}