Index: packages/web_components/test/location_wrapper_test.dart |
diff --git a/packages/web_components/test/location_wrapper_test.dart b/packages/web_components/test/location_wrapper_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a1c531ad50b6d1fa0737f10aa73ee0533142899d |
--- /dev/null |
+++ b/packages/web_components/test/location_wrapper_test.dart |
@@ -0,0 +1,17 @@ |
+// 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 template_wrappers_test; |
+ |
+import 'dart:html'; |
+import 'package:unittest/html_config.dart'; |
+import 'package:unittest/unittest.dart'; |
+ |
+main() { |
+ useHtmlConfiguration(); |
+ |
+ test('OK to access location with platform.js', () { |
+ expect(window.location.toString(), window.location.href); |
+ }); |
+} |