OLD | NEW |
---|---|
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'package:pub/src/compiler.dart'; | 5 import 'package:pub/src/compiler.dart'; |
6 import 'package:scheduled_test/scheduled_test.dart'; | 6 import 'package:scheduled_test/scheduled_test.dart'; |
7 | 7 |
8 import '../descriptor.dart' as d; | 8 import '../descriptor.dart' as d; |
9 import '../test_pub.dart'; | 9 import '../test_pub.dart'; |
10 | 10 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 args: ["build", "web", "--compiler=${Compiler.dartDevc.name}"], | 61 args: ["build", "web", "--compiler=${Compiler.dartDevc.name}"], |
62 output: new RegExp(r'Built [\d]+ files to "build".')); | 62 output: new RegExp(r'Built [\d]+ files to "build".')); |
63 | 63 |
64 d.dir(appPath, [ | 64 d.dir(appPath, [ |
65 d.dir('build', [ | 65 d.dir('build', [ |
66 d.dir('web', [ | 66 d.dir('web', [ |
67 d.matcherFile('main.dart.js', isNot(isEmpty)), | 67 d.matcherFile('main.dart.js', isNot(isEmpty)), |
68 d.matcherFile('main.dart.bootstrap.js', isNot(isEmpty)), | 68 d.matcherFile('main.dart.bootstrap.js', isNot(isEmpty)), |
69 d.matcherFile('dart_sdk.js', isNot(isEmpty)), | 69 d.matcherFile('dart_sdk.js', isNot(isEmpty)), |
70 d.matcherFile('require.js', isNot(isEmpty)), | 70 d.matcherFile('require.js', isNot(isEmpty)), |
71 d.matcherFile('web__main.js', isNot(isEmpty)), | 71 d.matcherFile('dart_stack_trace_mapper.js', isNot(isEmpty)), |
jakemac
2017/05/19 14:38:06
Why is this one removed? It should still exist (it
Jacob
2017/05/19 16:24:02
user error. added back.
| |
72 d.matcherFile('ddc_web_compiler.js', isNot(isEmpty)), | |
72 d.dir('packages', [ | 73 d.dir('packages', [ |
73 d.dir('foo', [d.matcherFile('lib__foo.js', isNot(isEmpty))]), | 74 d.dir('foo', [d.matcherFile('lib__foo.js', isNot(isEmpty))]), |
74 d.dir(appPath, [d.matcherFile('lib__hello.js', isNot(isEmpty))]), | 75 d.dir(appPath, [d.matcherFile('lib__hello.js', isNot(isEmpty))]), |
75 ]), | 76 ]), |
76 d.matcherFile('web__subdir__subfile.js', isNot(isEmpty)), | 77 d.matcherFile('web__subdir__subfile.js', isNot(isEmpty)), |
77 d.dir('subdir', [ | 78 d.dir('subdir', [ |
78 d.matcherFile('subfile.dart.js', isNot(isEmpty)), | 79 d.matcherFile('subfile.dart.js', isNot(isEmpty)), |
79 d.matcherFile( | 80 d.matcherFile( |
80 'subfile.dart.bootstrap.js', | 81 'subfile.dart.bootstrap.js', |
81 allOf( | 82 allOf( |
82 contains('"web/web__main": ' | 83 contains('"web/web__main": ' |
83 '"../web__main"'), | 84 '"../web__main"'), |
84 contains( | 85 contains( |
85 '"packages/foo/lib__foo": "../packages/foo/lib__foo"'), | 86 '"packages/foo/lib__foo": "../packages/foo/lib__foo"'), |
86 )), | 87 )), |
87 d.matcherFile('dart_sdk.js', isNot(isEmpty)), | 88 d.matcherFile('dart_sdk.js', isNot(isEmpty)), |
88 d.matcherFile('require.js', isNot(isEmpty)), | 89 d.matcherFile('require.js', isNot(isEmpty)), |
90 d.matcherFile('dart_stack_trace_mapper.js', isNot(isEmpty)), | |
91 d.matcherFile('ddc_web_compiler.js', isNot(isEmpty)), | |
89 ]), | 92 ]), |
90 ]), | 93 ]), |
91 ]), | 94 ]), |
92 ]).validate(); | 95 ]).validate(); |
93 }); | 96 }); |
94 } | 97 } |
OLD | NEW |