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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/blob_constructor_test.dart

Issue 2416853003: Move minitest.dart into the expect package. (Closed)
Patch Set: Created 4 years, 2 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 unified diff | Download patch
OLDNEW
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 import 'dart:html'; 5 import 'dart:html';
6 import 'dart:typed_data'; 6 import 'dart:typed_data';
7 7
8 import 'package:minitest/minitest.dart'; 8 import 'package:expect/minitest.dart';
9 9
10 main() { 10 main() {
11 test('basic', () { 11 test('basic', () {
12 var b = new Blob([]); 12 var b = new Blob([]);
13 expect(b.size, 0); 13 expect(b.size, 0);
14 }); 14 });
15 15
16 test('type1', () { 16 test('type1', () {
17 // OPTIONALS var b = new Blob(['Harry'], type: 'text'); 17 // OPTIONALS var b = new Blob(['Harry'], type: 'text');
18 var b = new Blob(['Harry'], 'text'); 18 var b = new Blob(['Harry'], 'text');
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 expect(b1.size, 1); 51 expect(b1.size, 1);
52 expect(b2.size, 2); 52 expect(b2.size, 2);
53 }); 53 });
54 54
55 test('fromArrayBuffer', () { 55 test('fromArrayBuffer', () {
56 var a = new Uint8List(100).buffer; // i.e. new ArrayBuffer(100); 56 var a = new Uint8List(100).buffer; // i.e. new ArrayBuffer(100);
57 var b = new Blob([a, a]); 57 var b = new Blob([a, a]);
58 expect(b.size, 200); 58 expect(b.size, 200);
59 }); 59 });
60 } 60 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/codegen/lib/html/audioelement_test.dart ('k') | pkg/dev_compiler/test/codegen/lib/html/cache_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698