Index: tests/html/two_scripts_test_second.dart |
diff --git a/pkg/http/test/html/utils.dart b/tests/html/two_scripts_test_second.dart |
similarity index 56% |
copy from pkg/http/test/html/utils.dart |
copy to tests/html/two_scripts_test_second.dart |
index 243278ea7fde4aae653b4619f740be6db8f10eae..eab4493e38e67365dbfede4f9df5de3e846f00d0 100644 |
--- a/pkg/http/test/html/utils.dart |
+++ b/tests/html/two_scripts_test_second.dart |
@@ -2,12 +2,14 @@ |
// 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 http.test.html_utils; |
- |
+library TwoScriptsTestSecond; |
import 'dart:html'; |
-export '../utils.dart'; |
+aGlobalFunction() { |
+ window.postMessage('second_global', '*'); |
+} |
-/// The test server's echo URL. |
-Uri get echoUrl => Uri.parse( |
- '${window.location.protocol}//${window.location.host}/echo'); |
+main() { |
+ window.postMessage('second_local', '*'); |
+ aGlobalFunction(); |
+} |