TEst to reproduce issue 18747

R=sra@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart/pkg/web_components@36117 260f80e4-7a28-3924-810f-c04153c831b5
diff --git a/test/location_wrapper_test.dart b/test/location_wrapper_test.dart
new file mode 100644
index 0000000..a1c531a
--- /dev/null
+++ b/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);
+  });
+}
diff --git a/test/location_wrapper_test.html b/test/location_wrapper_test.html
new file mode 100644
index 0000000..b5f20b6
--- /dev/null
+++ b/test/location_wrapper_test.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="dart.unittest" content="full-stack-traces">
+  <title> location_wrappers_test </title>
+  <style>
+     .unittest-table { font-family:monospace; border:1px; }
+     .unittest-pass { background: #6b3;}
+     .unittest-fail { background: #d55;}
+     .unittest-error { background: #a11;}
+  </style>
+  <script src="/packages/web_components/platform.js"></script>
+  <script src="/packages/web_components/dart_support.js"></script>
+</head>
+<body>
+  <h1> Running template_wrappers_test </h1>
+  <script type="text/javascript"
+      src="/root_dart/tools/testing/dart/test_controller.js"></script>
+  %TEST_SCRIPTS%
+</body>
+</html>