Index: LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
diff --git a/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html b/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
index e73440b7c93a197a965fef987a5861162472a3e4..ad6e7482cfeb7b499ee0b8f7b6e7d016b982d2b3 100644 |
--- a/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
+++ b/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
@@ -24,6 +24,16 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
--> |
<html> |
<head> |
- <script type="text/javascript" src="InspectorTest.js"></script> |
+<script> |
+window.addEventListener("message", function(event) { |
+ try { |
+ eval(event.data); |
+ } catch (e) { |
+ alert(e.stack); |
+ InspectorTest.completeTest(); |
+ throw e; |
+ } |
+}); |
+</script> |
</head> |
</html> |