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

Unified Diff: tests/html/xhr_cross_origin_test.dart

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 months 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
« no previous file with comments | « tests/html/websql_test.dart ('k') | tests/html/xhr_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/xhr_cross_origin_test.dart
diff --git a/tests/html/xhr_cross_origin_test.dart b/tests/html/xhr_cross_origin_test.dart
index d39af2c85e388bcfdb6e6e60f0f352ff50b9f429..22077f5b91a9e2899e95e3a9ad48439e8e188288 100644
--- a/tests/html/xhr_cross_origin_test.dart
+++ b/tests/html/xhr_cross_origin_test.dart
@@ -6,7 +6,7 @@ library XHRCrossOriginTest;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
import 'dart:html';
-import 'dart:json';
+import 'dart:json' as json;
main() {
useHtmlConfiguration();
@@ -23,7 +23,7 @@ main() {
xhr.on.readyStateChange.add((e) {
guardAsync(() {
if (xhr.readyState == HttpRequest.DONE) {
- validate(JSON.parse(xhr.response));
+ validate(json.parse(xhr.response));
}
});
});
@@ -33,7 +33,7 @@ main() {
test('XHR.get Cross-domain', () {
var url = "http://localhost:9876/tests/html/xhr_cross_origin_data.txt";
new HttpRequest.get(url, expectAsync1((xhr) {
- var data = JSON.parse(xhr.response);
+ var data = json.parse(xhr.response);
expect(data, contains('feed'));
expect(data['feed'], contains('entry'));
expect(data, isMap);
« no previous file with comments | « tests/html/websql_test.dart ('k') | tests/html/xhr_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698