Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: tests/html/two_scripts_test_second.dart

Issue 732533002: Add HTML test with two dart scripts on one page. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
+}
« tests/html/two_scripts_test_first.dart ('K') | « tests/html/two_scripts_test_first.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698