Merge pull request #121 from dart-lang/undo-ready-state
Revert 06cf6268b35a426e326079a1a829df3839b43038.
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 20698e6..8e45401 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+##0.11.6+1
+
+* Give tests more time to start running.
+
##0.11.6
* Merge in the last `0.11.x` release of `matcher` to allow projects to use both
diff --git a/lib/test_controller.js b/lib/test_controller.js
index 40693af..8a62d6a 100644
--- a/lib/test_controller.js
+++ b/lib/test_controller.js
@@ -160,11 +160,7 @@
}
document.addEventListener('readystatechange', function () {
- // Most browsers set readyState to "loaded", but some (such as Chrome content
- // shell) set it to "complete" instead.
- if (document.readyState != "loaded" && document.readyState != "complete") {
- return;
- }
+ if (document.readyState != "loaded") return;
// If 'startedDartTest' is not set, that means that the test did not have
// a chance to load. This will happen when a load error occurs in the VM.
// Give the machine time to start up.
diff --git a/pubspec.yaml b/pubspec.yaml
index 16118e9..0f971d2 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
name: unittest
-version: 0.11.6
+version: 0.11.6+1
author: Dart Team <misc@dartlang.org>
description: A library for writing dart unit tests.
homepage: https://github.com/dart-lang/old_unittest