Changeset 429 for trunk/icedtea-web/tests/reproducers/signed/SavingCookies
- Timestamp:
- Sep 24, 2014, 9:34:21 PM (11 years ago)
- Location:
- trunk/icedtea-web/tests/reproducers/signed/SavingCookies
- Files:
-
- 7 edited
-
resources/CheckCookieAndGotoClear.html (modified) (1 diff)
-
resources/ClearPersistentCookie.html (modified) (1 diff)
-
resources/SavePersistentCookie.html (modified) (1 diff)
-
resources/SavePersistentCookieAndGotoCheck.html (modified) (1 diff)
-
resources/SaveSessionCookie.html (modified) (1 diff)
-
srcs/SavingCookies.java (modified) (1 diff)
-
testcases/SavingCookiesTests.java (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/tests/reproducers/signed/SavingCookies/resources/CheckCookieAndGotoClear.html
r418 r429 38 38 39 39 <!-- Uses show-document to go to a page that clears the cookie --> 40 40 41 41 <html><head></head><body bgcolor="red"> 42 42 <p> 43 43 <applet code="CheckingCookies.class" archive="SavingCookies.jar" codebase="." width="100" height="100"> 44 44 45 45 <param name="show-document" value="ClearPersistentCookie.html"> 46 46 47 47 </applet> 48 48 </p> -
trunk/icedtea-web/tests/reproducers/signed/SavingCookies/resources/ClearPersistentCookie.html
r418 r429 41 41 42 42 <param name="persistent" value="no"> 43 43 44 44 <param name="cookie" value="TEST=deleted; Expires=Thu, 01 Jan 1970 00:00:01 GMT"> 45 45 -
trunk/icedtea-web/tests/reproducers/signed/SavingCookies/resources/SavePersistentCookie.html
r418 r429 41 41 42 42 <param name="persistent" value="yes"> 43 43 44 44 <param name="cookie" value="TEST=persistent"> 45 45 46 46 </applet> 47 47 </p> -
trunk/icedtea-web/tests/reproducers/signed/SavingCookies/resources/SavePersistentCookieAndGotoCheck.html
r418 r429 42 42 <param name="show-document" value="CheckCookieAndGotoClear.html"> 43 43 <param name="persistent" value="yes"> 44 44 45 45 <param name="cookie" value="TEST=persistent"> 46 46 -
trunk/icedtea-web/tests/reproducers/signed/SavingCookies/resources/SaveSessionCookie.html
r418 r429 41 41 42 42 <param name="persistent" value="no"> 43 43 44 44 <param name="cookie" value="TEST=session"> 45 45 -
trunk/icedtea-web/tests/reproducers/signed/SavingCookies/srcs/SavingCookies.java
r418 r429 1 1 /* SavingCookies.java 2 2 Store cookies in the java cookie store, and go to a page that confirms they are there. 3 3 4 4 Copyright (C) 2012 Red Hat, Inc. 5 5 -
trunk/icedtea-web/tests/reproducers/signed/SavingCookies/testcases/SavingCookiesTests.java
r418 r429 51 51 52 52 public class SavingCookiesTests extends BrowserTest { 53 53 54 54 static final String ENTERING_CHECK = "Entered CheckingCookies"; 55 55 static final String CHECKING_COMPLETION = "Finished CheckingCookies"; … … 86 86 }; 87 87 if (url.endsWith(".html")) { 88 pr = server.executeBrowser(url, stdoutListener, stdoutListener);88 pr = server.executeBrowser(url, stdoutListener, null); 89 89 } else if (url.endsWith(".jnlp")) { 90 pr = server.executeJavawsHeadless(TRUSTALL, url, stdoutListener, stdoutListener);90 pr = server.executeJavawsHeadless(TRUSTALL, url, stdoutListener, null, null); 91 91 } 92 92 } catch (Exception ex) { … … 106 106 final String COOKIE_SANITY_CHECK = "Found cookie: TEST="; 107 107 ProcessResult pr = server.executeBrowser("/CheckCookie.html"); 108 108 109 109 Assert.assertFalse("stdout should NOT contain '" + COOKIE_SANITY_CHECK + "' but did.", pr.stdout.contains(COOKIE_SANITY_CHECK)); 110 110 Assert.assertTrue("stdout should contain '" + CHECKING_COMPLETION + "' but did not.", pr.stdout.contains(CHECKING_COMPLETION)); 111 111 } 112 112 113 113 @Test 114 114 @TestInBrowsers(testIn = { Browsers.one }) … … 130 130 Thread.sleep(100); 131 131 } 132 132 133 133 ProcessResult check = server.executeBrowser("/CheckCookie.html"); 134 134 save.join(); 135 135 136 136 Assert.assertTrue("stdout should contain '" + ENTERING_CHECK + "' but did not.", save.pr.stdout.contains(ENTERING_CHECK)); 137 137 //XXX: It is necessary to check save.pr's stdout, because it does not show up in 'check.stdout' for some reason … … 155 155 public void AppletPersistentCookieShowDoc() throws Exception { 156 156 ProcessResult pr = server.executeBrowser("/SavePersistentCookieAndGotoCheck.html"); 157 157 158 158 Assert.assertTrue("stdout should contain '" + ENTERING_CHECK + "' but did not.", pr.stdout.contains(ENTERING_CHECK)); 159 159 Assert.assertTrue("stdout should contain '" + COOKIE_PERSISTENT_CHECK + "' but did not.", pr.stdout.contains(COOKIE_PERSISTENT_CHECK));
Note:
See TracChangeset
for help on using the changeset viewer.
