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

Side by Side Diff: pkg/dev_compiler/test/codegen/lib/html/crypto_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 group('supported', () { 11 group('supported', () {
12 test('supported', () { 12 test('supported', () {
13 expect(Crypto.supported, true); 13 expect(Crypto.supported, true);
14 }); 14 });
15 }); 15 });
16 16
17 group('functional', () { 17 group('functional', () {
18 if (Crypto.supported) { 18 if (Crypto.supported) {
(...skipping 18 matching lines...) Expand all
37 test('type mismatch', () { 37 test('type mismatch', () {
38 var crypto = window.crypto; 38 var crypto = window.crypto;
39 var data = new Float32List(100); 39 var data = new Float32List(100);
40 expect(() { 40 expect(() {
41 crypto.getRandomValues(data); 41 crypto.getRandomValues(data);
42 }, throws, reason: 'Only typed array views with integer types allowed'); 42 }, throws, reason: 'Only typed array views with integer types allowed');
43 }); 43 });
44 } 44 }
45 }); 45 });
46 } 46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698