| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors.  Please see the AUTHORS file | 
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a | 
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. | 
| 4 | 4 | 
| 5 library XHRTest; | 5 library XHRTest; | 
| 6 import '../../pkg/unittest/lib/unittest.dart'; | 6 import '../../pkg/unittest/lib/unittest.dart'; | 
| 7 import '../../pkg/unittest/lib/html_individual_config.dart'; | 7 import '../../pkg/unittest/lib/html_individual_config.dart'; | 
| 8 import 'dart:async'; | 8 import 'dart:async'; | 
| 9 import 'dart:html'; | 9 import 'dart:html'; | 
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; | 
| 11 import 'dart:typeddata'; | 11 import 'dart:typed_data'; | 
| 12 | 12 | 
| 13 void fail(message) { | 13 void fail(message) { | 
| 14   guardAsync(() { | 14   guardAsync(() { | 
| 15     expect(false, isTrue, reason: message); | 15     expect(false, isTrue, reason: message); | 
| 16   }); | 16   }); | 
| 17 } | 17 } | 
| 18 | 18 | 
| 19 main() { | 19 main() { | 
| 20   useHtmlIndividualConfiguration(); | 20   useHtmlIndividualConfiguration(); | 
| 21   var url = "/root_dart/tests/html/xhr_cross_origin_data.txt"; | 21   var url = "/root_dart/tests/html/xhr_cross_origin_data.txt"; | 
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 172           (xhr) { | 172           (xhr) { | 
| 173             expect(xhr.status, equals(200)); | 173             expect(xhr.status, equals(200)); | 
| 174             var blob = xhr.response; | 174             var blob = xhr.response; | 
| 175             expect(blob is Blob, isTrue); | 175             expect(blob is Blob, isTrue); | 
| 176             expect(blob, isNotNull); | 176             expect(blob, isNotNull); | 
| 177           }); | 177           }); | 
| 178       } | 178       } | 
| 179     }); | 179     }); | 
| 180   }); | 180   }); | 
| 181 } | 181 } | 
| OLD | NEW | 
|---|