Skip to content

Commit f7df911

Browse files
authored
Load Exception (#682)
1 parent 2263344 commit f7df911

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.12.24+5
2+
3+
* Expose a way for tests to forward a `loadException` to the server.
4+
15
## 0.12.24+4
26

37
* Drain browser process `stdout` and `stdin`. This resolves test flakiness, especially in Travis

lib/dart.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ var sendLoadException = function(message) {
1919
}, window.location.origin);
2020
}
2121

22+
// Listen for dartLoadException events and forward to the server.
23+
window.addEventListener('dartLoadException', function(e) {
24+
sendLoadException(e.detail);
25+
});
26+
2227
// The basename of the current page.
2328
var name = window.location.href.replace(/.*\//, '').replace(/#.*/, '');
2429

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test
2-
version: 0.12.24+4
2+
version: 0.12.24+5
33
author: Dart Team <[email protected]>
44
description: A library for writing dart unit tests.
55
homepage: https://github.com/dart-lang/test

0 commit comments

Comments
 (0)