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

Side by Side Diff: LayoutTests/http/tests/websocket/workers/resources/close.js

Issue 101143002: Remove hybi sub directory for WebSocket layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 unified diff | Download patch
OLDNEW
1 function postResult(result, actual, expected) 1 function postResult(result, actual, expected)
2 { 2 {
3 var message = result ? "PASS" : "FAIL"; 3 var message = result ? "PASS" : "FAIL";
4 message += ": worker: " + actual + " is "; 4 message += ": worker: " + actual + " is ";
5 if (!result) 5 if (!result)
6 message += "not "; 6 message += "not ";
7 message += expected; 7 message += expected;
8 postMessage(message); 8 postMessage(message);
9 } 9 }
10 10
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 shouldBe("closeEvent.reason", "reason"); 209 shouldBe("closeEvent.reason", "reason");
210 if (++id != codes.length) 210 if (++id != codes.length)
211 test(id); 211 test(id);
212 else 212 else
213 postMessage("DONE"); 213 postMessage("DONE");
214 }; 214 };
215 })(0); 215 })(0);
216 } 216 }
217 217
218 runCodeTest(); 218 runCodeTest();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698