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

Unified Diff: third_party/WebKit/LayoutTests/virtual/enable_asmjs/http/tests/asmjs/asm-warnings.html

Issue 2530503002: [wasm][asm.js] Routing asm.js warnings to the dev console. (Closed)
Patch Set: merge Created 4 years 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: third_party/WebKit/LayoutTests/virtual/enable_asmjs/http/tests/asmjs/asm-warnings.html
diff --git a/third_party/WebKit/LayoutTests/virtual/enable_asmjs/http/tests/asmjs/asm-warnings.html b/third_party/WebKit/LayoutTests/virtual/enable_asmjs/http/tests/asmjs/asm-warnings.html
new file mode 100644
index 0000000000000000000000000000000000000000..9eb2eaed1405418ebcf24dc30be6f5ccde463dd0
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/virtual/enable_asmjs/http/tests/asmjs/asm-warnings.html
@@ -0,0 +1,27 @@
+<html>
+<body>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.dumpChildFramesAsText();
+ testRunner.setDumpConsoleMessages(true);
+ testRunner.waitUntilDone();
+}
+
+function ModuleBadAsm() {
+ "use asm";
+ var x = "hi";
+ function foo() {}
+ return {bar: foo};
+}
+ModuleBadAsm();
+
+var w = new Worker('worker.js');
+w.onmessage = function(e) {
+ testRunner.notifyDone();
+};
+w.postMessage({name: 'yo'});
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698