Changeset 90604 in webkit
- Timestamp:
- Jul 7, 2011 5:49:40 PM (13 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r90597 r90604 1 2011-07-07 Yuta Kitamura <yutak@chromium.org> 2 3 WebSocket: Use jsTestIsAsync and finishJSTest() in httponly-cookie.pl 4 https://bugs.webkit.org/show_bug.cgi?id=64087 5 6 Reviewed by Kent Tamura. 7 8 * http/tests/websocket/tests/hixie76/httponly-cookie.pl: 9 1 10 2011-07-07 James Robinson <jamesr@chromium.org> 2 11 -
trunk/LayoutTests/http/tests/websocket/tests/hixie76/httponly-cookie.pl
r90445 r90604 10 10 <head> 11 11 <script src="../../../../js-test-resources/js-test-pre.js"></script> 12 <script src="../../../../js-test-resources/js-test-post-function.js"></script>13 12 </head> 14 13 <body> … … 17 16 <div id="console"></div> 18 17 <script> 19 if (window.layoutTestController) { 20 layoutTestController.dumpAsText(); 21 layoutTestController.waitUntilDone(); 22 } 18 window.jsTestIsAsync = true; 23 19 24 20 var cookie; … … 29 25 // Split the cookie string, sort it and then put it back together. 30 26 return cookie.split('; ').sort().join('; '); 31 }32 33 function endTest()34 {35 cookie = normalizeCookie(cookie);36 shouldBe("cookie", '"WK-websocket-test-httponly=1; WK-websocket-test=1"');37 isSuccessfullyParsed();38 if (window.layoutTestController)39 layoutTestController.notifyDone();40 27 } 41 28 … … 50 37 ws.onclose = function() { 51 38 debug("WebSocket closed"); 52 endTest(); 39 cookie = normalizeCookie(cookie); 40 shouldBe("cookie", '"WK-websocket-test-httponly=1; WK-websocket-test=1"'); 41 finishJSTest(); 53 42 }; 54 43 55 44 var successfullyParsed = true; 56 45 </script> 46 <script src="../../../../js-test-resources/js-test-post.js"></script> 57 47 </body> 58 48 </html>
Note: See TracChangeset
for help on using the changeset viewer.