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

Side by Side Diff: utils/tests/pub/validator_test.dart

Issue 12659008: Fix a couple broken tests in pub/validator_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove "solo_". Created 7 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
« no previous file with comments | « utils/pub/validator/compiled_dartdoc.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 validator_test; 5 library validator_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:json' as json; 9 import 'dart:json' as json;
10 import 'dart:math' as math; 10 import 'dart:math' as math;
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 dir(appPath, [dir(name)]).scheduleCreate(); 545 dir(appPath, [dir(name)]).scheduleCreate();
546 expectValidationWarning(directory); 546 expectValidationWarning(directory);
547 }); 547 });
548 } 548 }
549 }); 549 });
550 550
551 integration('is more than 10 MB', () { 551 integration('is more than 10 MB', () {
552 expectValidationError(size(10 * math.pow(2, 20) + 1)); 552 expectValidationError(size(10 * math.pow(2, 20) + 1));
553 }); 553 });
554 554
555 test('contains compiled dartdoc', () { 555 integration('contains compiled dartdoc', () {
556 dir(appPath, [ 556 dir(appPath, [
557 dir('doc-out', [ 557 dir('doc-out', [
558 file('nav.json', ''), 558 file('nav.json', ''),
559 file('index.html', ''), 559 file('index.html', ''),
560 file('styles.css', ''), 560 file('styles.css', ''),
561 file('dart-logo-small.png', ''), 561 file('dart-logo-small.png', ''),
562 file('client-live-nav.js', '') 562 file('client-live-nav.js', '')
563 ]) 563 ])
564 ]).scheduleCreate(); 564 ]).scheduleCreate();
565 565
566 expectValidationWarning(compiledDartdoc); 566 expectValidationWarning(compiledDartdoc);
567 }); 567 });
568 568
569 test('has a README with invalid utf-8', () { 569 integration('has a README with invalid utf-8', () {
570 dir(appPath, [ 570 dir(appPath, [
571 binaryFile("README", [192]) 571 binaryFile("README", [192])
572 ]).scheduleCreate(); 572 ]).scheduleCreate();
573 expectValidationWarning(utf8Readme); 573 expectValidationWarning(utf8Readme);
574 }); 574 });
575 }); 575 });
576 } 576 }
OLDNEW
« no previous file with comments | « utils/pub/validator/compiled_dartdoc.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698