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

Side by Side Diff: pkg/analysis_server/test/src/watch_manager_test.dart

Issue 1266923004: More fixes for failures on the Windows bot (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.src.watch_manager_test; 5 library test.src.watch_manager_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/watch_manager.dart'; 9 import 'package:analysis_server/src/watch_manager.dart';
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
11 import 'package:analyzer/file_system/memory_file_system.dart'; 11 import 'package:analyzer/file_system/memory_file_system.dart';
12 import 'package:test_reflective_loader/test_reflective_loader.dart'; 12 import 'package:test_reflective_loader/test_reflective_loader.dart';
13 import 'package:unittest/unittest.dart'; 13 import 'package:unittest/unittest.dart';
14 import 'package:watcher/watcher.dart'; 14 import 'package:watcher/watcher.dart';
15 15
16 import '../mocks.dart'; 16 import '../mocks.dart';
17 import '../utils.dart';
17 18
18 main() { 19 main() {
19 groupSep = ' | '; 20 initializeTestEnvironment();
20 defineReflectiveTests(WatchManagerTest); 21 defineReflectiveTests(WatchManagerTest);
21 defineReflectiveTests(WatchNodeTest); 22 defineReflectiveTests(WatchNodeTest);
22 } 23 }
23 24
24 /** 25 /**
25 * Tokens that can be used for testing purposes. 26 * Tokens that can be used for testing purposes.
26 */ 27 */
27 class Token { 28 class Token {
28 /** 29 /**
29 * A name used for debugging. 30 * A name used for debugging.
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 void test_insert_top() { 343 void test_insert_top() {
343 WatchNode rootNode = new WatchNode(null); 344 WatchNode rootNode = new WatchNode(null);
344 WatchNode topNode = new WatchNode(provider.getFolder('/a/b')); 345 WatchNode topNode = new WatchNode(provider.getFolder('/a/b'));
345 346
346 rootNode.insert(topNode); 347 rootNode.insert(topNode);
347 expect(rootNode.children, equals([topNode])); 348 expect(rootNode.children, equals([topNode]));
348 expect(topNode.parent, rootNode); 349 expect(topNode.parent, rootNode);
349 expect(topNode.children, isEmpty); 350 expect(topNode.children, isEmpty);
350 } 351 }
351 } 352 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/src/utilities/test_all.dart ('k') | pkg/analysis_server/test/test_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698