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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/Window/resources/postmessage-test.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 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 unified diff | Download patch
OLDNEW
1 if (window.testRunner) { 1 if (window.testRunner) {
2 testRunner.dumpAsText(); 2 testRunner.dumpAsText();
3 testRunner.waitUntilDone(); 3 testRunner.waitUntilDone();
4 } 4 }
5 5
6 var console = document.getElementById("console"); 6 var console = document.getElementById("console");
7 7
8 var messages = []; 8 var messages = [];
9 var evalThunks = []; 9 var evalThunks = [];
10 10
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 if (shouldThrow) { 177 if (shouldThrow) {
178 if (expectedException === undefined || expectedException == e.code | | expectedException == e || e instanceof expectedException) { 178 if (expectedException === undefined || expectedException == e.code | | expectedException == e || e instanceof expectedException) {
179 console.innerHTML += "PASS: 'postMessage("+message+")' threw " + escapeHTML(e) + "<br>"; 179 console.innerHTML += "PASS: 'postMessage("+message+")' threw " + escapeHTML(e) + "<br>";
180 } else { 180 } else {
181 console.innerHTML += "FAIL: 'postMessage("+message+")' threw " + escapeHTML(e) + ", was expecting " + escapeHTML(expectedException) + "<br>"; 181 console.innerHTML += "FAIL: 'postMessage("+message+")' threw " + escapeHTML(e) + ", was expecting " + escapeHTML(expectedException) + "<br>";
182 } 182 }
183 } else 183 } else
184 console.innerHTML += "FAIL: 'postMessage("+message+")' should not th row but threw " + e + "<br>"; 184 console.innerHTML += "FAIL: 'postMessage("+message+")' should not th row but threw " + e + "<br>";
185 } 185 }
186 } 186 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698