Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Unified Diff: LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html

Issue 183663014: DevTools: Unify protocol test scripts naming with frontend tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed tests Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698