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

Side by Side Diff: samples/sample_extension/test_sample_synchronous_extension.dart

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 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 unified diff | Download patch | Annotate | Revision Log
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 #library("test_sample_extension"); 5 library test_sample_extension;
6 6
7 #import("sample_synchronous_extension.dart"); 7 import 'sample_synchronous_extension.dart';
8 8
9 // TODO(3008): Run this test automatically on buildbot (dart:3008). 9 // TODO(3008): Run this test automatically on buildbot (dart:3008).
10 void main() { 10 void main() {
11 systemSrand(17); 11 systemSrand(17);
12 var x1 = systemRand(); 12 var x1 = systemRand();
13 var x2 = systemRand(); 13 var x2 = systemRand();
14 var x3 = systemRand(); 14 var x3 = systemRand();
15 Expect.notEquals(x1, x2); 15 Expect.notEquals(x1, x2);
16 Expect.notEquals(x1, x3); 16 Expect.notEquals(x1, x3);
17 Expect.notEquals(x2, x3); 17 Expect.notEquals(x2, x3);
18 systemSrand(17); 18 systemSrand(17);
19 Expect.equals(x1, systemRand()); 19 Expect.equals(x1, systemRand());
20 Expect.equals(x2, systemRand()); 20 Expect.equals(x2, systemRand());
21 Expect.equals(x3, systemRand()); 21 Expect.equals(x3, systemRand());
22 systemSrand(18); 22 systemSrand(18);
23 Expect.notEquals(x1, systemRand()); 23 Expect.notEquals(x1, systemRand());
24 Expect.notEquals(x2, systemRand()); 24 Expect.notEquals(x2, systemRand());
25 Expect.notEquals(x3, systemRand()); 25 Expect.notEquals(x3, systemRand());
26 } 26 }
OLDNEW
« no previous file with comments | « samples/sample_extension/test_sample_asynchronous_extension.dart ('k') | samples/swarm/swarm.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698