File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
## 0.12.34+1
2
2
3
3
* Fixed an issue ` --precompiled ` node tests in subdirectories.
4
+ * Fixed default custom html handler so it correctly includes the
5
+ packages/test/dart.js file. This allows you to get proper errors instead of
6
+ timeouts if there are load exceptions in the browser.
4
7
5
8
## 0.12.34
6
9
Original file line number Diff line number Diff line change @@ -177,18 +177,16 @@ class BrowserPlatform extends PlatformPlugin
177
177
178
178
// Link to the Dart wrapper on Dartium and the compiled JS version
179
179
// elsewhere.
180
- var scriptBase =
181
- "${HTML_ESCAPE .convert (p .basename (test ))}.browser_test.dart" ;
182
- var script = request.headers['user-agent' ].contains ('(Dart)' )
183
- ? 'type="application/dart" src="$scriptBase "'
184
- : 'src="$scriptBase .js"' ;
180
+ var scriptBase = HTML_ESCAPE .convert (p.basename (test));
181
+ var link = '<link rel="x-dart-test" href="$scriptBase ">' ;
185
182
186
183
return new shelf.Response .ok ('''
187
184
<!DOCTYPE html>
188
185
<html>
189
186
<head>
190
187
<title>${HTML_ESCAPE .convert (test )} Test</title>
191
- <script $script ></script>
188
+ $link
189
+ <script src="packages/test/dart.js"></script>
192
190
</head>
193
191
</html>
194
192
''' , headers: {'Content-Type' : 'text/html' });
You can’t perform that action at this time.
0 commit comments