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

Side by Side Diff: samples/pop-pop-win/test/ppw/test_game.dart

Issue 200723008: samples/poppopwin: upgrade to first-class sample (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: cl comments Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 part of ppw_test; 1 part of ppw_test;
2 2
3 class TestGame { 3 class TestGame {
4 static void run() { 4 static void run() {
5 group('Game', () { 5 group('Game', () {
6 test('initial values', _testInitial); 6 test('initial values', _testInitial);
7 test('setFlag', _testSetFlag); 7 test('setFlag', _testSetFlag);
8 test('cannot reveal flagged', _testCannotRevealFlagged); 8 test('cannot reveal flagged', _testCannotRevealFlagged);
9 test('cannot flag revealed', _testCannotFlagRevealed); 9 test('cannot flag revealed', _testCannotFlagRevealed);
10 test('reveal zero', _testRevealZero); 10 test('reveal zero', _testRevealZero);
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 expect(g.getSquareState(x,y), equals(SquareState.revealed)); 259 expect(g.getSquareState(x,y), equals(SquareState.revealed));
260 } 260 }
261 expect(g.state, isNot(equals(GameState.reset))); 261 expect(g.state, isNot(equals(GameState.reset)));
262 expect(g.state, isNot(equals(GameState.lost))); 262 expect(g.state, isNot(equals(GameState.lost)));
263 } 263 }
264 } 264 }
265 265
266 expect(g.state, equals(GameState.won)); 266 expect(g.state, equals(GameState.won));
267 } 267 }
268 } 268 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698