| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |