Permalink
Browse files

Added new URL parameter suppressCacheBuster.

  • Loading branch information...
1 parent 083f4ef commit d539c6b862f44ffd37615122bbb3af036a28ef70 @pivotalops pivotalops committed Jan 15, 2010
Showing with 76 additions and 69 deletions.
  1. +4 −0 app/jsUnitParams.js
  2. +8 −6 app/testContainerController.html
  3. +64 −63 changelog.txt
View
@@ -58,6 +58,10 @@ JsUnit.Params.prototype.getSetupPageTimeout = function() {
return this.get('setuppagetimeout') || JsUnitTestManager.SETUPPAGE_TIMEOUT;
}
+JsUnit.Params.prototype.getSuppressCacheBuster = function() {
+ return this.get('suppresscachebuster') == "true";
+}
+
JsUnit.Params.prototype.getResultId = function() {
if (this.get('resultid'))
return this.get('resultid');
@@ -59,12 +59,14 @@
}
function appendCacheBusterParameterTo(testPageURI) {
- if (testPageURI.indexOf("?") == -1)
- testPageURI += "?";
- else
- testPageURI += "&";
- testPageURI += "cacheBuster=";
- testPageURI += new Date().getTime();
+ if (!top.params.getSuppressCacheBuster()) {
+ if (testPageURI.indexOf("?") == -1)
+ testPageURI += "?";
+ else
+ testPageURI += "&";
+ testPageURI += "cacheBuster=";
+ testPageURI += new Date().getTime();
+ }
return testPageURI;
}
</script>
View
@@ -1,63 +1,64 @@
-TRACING
-- Tracing is now color coded by trace level
-- Traces are now prefixed with the Test Page and Test Function from which the trace is made
-
-ASSERTION FUNCTIONS
-- assertArrayEquals(array1, array2) introduced
-- assertObjectEquals(object1, object2) introduced
-- assertHTMLEquals function introduced
-- assertEvaluatesToTrue and assertEvaluatesToFalse introduced
-- assertHashEquals }
-- assertRoughlyEquals } Pivotal functions
-- assertContains }
-- assertEqualsIgnoringOrder
-
-CLIENT-SIDE
-- changed expected/actual values display strings to use angle brackets, rather than square brackets
-- HTML in result output is now correctly escaped
-- page load timeout changed to 10 seconds by default
-- setup page timeout change to 10 seconds by default
-- cache-buster for testpage retrieval & results submission
-- jsUnitRestoredHTMLDiv
-- turn off tracing, alerts, confirms when submitting
-- testPage parameter should be URL-encoded (only opera cares though)
-- Speed-up of Firefox/Mozilla (thanks to Chris Wesseling)
-- jsUnitMockTimeout.js (thanks to Pivotal, especially Nathan Wilmes)
-- new "Stop" button for stopping test runs
-- new "Show log" button for showing a log of the test run
-- new "suppressDialogs" URL parameter for suppressing dialogs in interactive mode
-- new "setupPageTimeout" and "pageLoadTimeout" URL parameters for setting timeouts
-- jsUnitTestSuite constructor now takes a list of test pages and/or suites as an alternative to calling addTestPage() and addTestSuite():
- new jsUnitTestSuite("/path/to/page1.html", subsuite, "/path/to/page2.html");
-- uses IE's undocumented RuntimeObject to find test functions instead of searching through the text of the page (thanks to Dean McNamee and Dan Pupius)
-
-SERVER
-- start-browser scripts in bin
-- Migration of Java code to require Java 5.0
-- StandaloneTest and DistributedTest continue on after a failure in a particular browser or remote server respectively
-- StandaloneTest has a suite() method that makes the test run have multiple JUnit tests, one per browser
-- DistribuedTest has a suite() method that makes the test run have multiple JUnit tests, one per remote machine URL
-- Change to XML output format of test runs to include more information and be more hierarchical (machine->browser->test page->test case)
-- Logs are now prefixed with "JSTEST-" in order to match JUnit's "TEST-"
-- Logs now contain the browser ID (e.g. JSTEST-12345.5.xml means browser with ID 5); displayer servlet now takes an id and a browserId parameter
-- added support for launching the default system browser on Windows and UNIX (see the constant on net.jsunit.StandaloneTest)
-- StandaloneTest now runs tests in all specified browsers, even after an earlier browser failed
-- New "config" servlet that shows the configuration as XML of the server
-- Distributed Tests now send back an XML document that includes the XML for browser results as opposed to just a "success"/"failure" node
-- runner servlet takes a "url" querystring parameter that overrides the server's url property
-- test run requests to the JsUnitServer are queued up and in serial so that different clients don't step on eachother
-- addition of new configuration parameter, "closeBrowsersAfterTestRuns", for whether to attempt to close browsers after test runs
-- addition of new configuration property, "timeoutSeconds", for how long to time browsers out
-- addition of new configuration property, "ignoreUnresponsiveRemoteMachines", for whether to care that remote machines don't uccessfully run the tests
-- addition of new configuration property, "description", which contains a human-readable description of the server
-
-BUGS
-- fix for "retry test run" bug
-- bug 1070436 fixed
-- bug with multiple browsers and resultId specified fixed
-- Bug 1281427 fixed (test submission for Opera)
-- Safari fix
-- Bug 1431040 fixed
-
-ECLIPSE PLUGIN
-- Eclipse plugin version 1.0
+TRACING
+- Tracing is now color coded by trace level
+- Traces are now prefixed with the Test Page and Test Function from which the trace is made
+
+ASSERTION FUNCTIONS
+- assertArrayEquals(array1, array2) introduced
+- assertObjectEquals(object1, object2) introduced
+- assertHTMLEquals function introduced
+- assertEvaluatesToTrue and assertEvaluatesToFalse introduced
+- assertHashEquals }
+- assertRoughlyEquals } Pivotal functions
+- assertContains }
+- assertEqualsIgnoringOrder
+
+CLIENT-SIDE
+- changed expected/actual values display strings to use angle brackets, rather than square brackets
+- HTML in result output is now correctly escaped
+- page load timeout changed to 10 seconds by default
+- setup page timeout change to 10 seconds by default
+- cache-buster for testpage retrieval & results submission
+- jsUnitRestoredHTMLDiv
+- turn off tracing, alerts, confirms when submitting
+- testPage parameter should be URL-encoded (only opera cares though)
+- Speed-up of Firefox/Mozilla (thanks to Chris Wesseling)
+- jsUnitMockTimeout.js (thanks to Pivotal, especially Nathan Wilmes)
+- new "Stop" button for stopping test runs
+- new "Show log" button for showing a log of the test run
+- new "suppressDialogs" URL parameter for suppressing dialogs in interactive mode
+- new "setupPageTimeout" and "pageLoadTimeout" URL parameters for setting timeouts
+- jsUnitTestSuite constructor now takes a list of test pages and/or suites as an alternative to calling addTestPage() and addTestSuite():
+ new jsUnitTestSuite("/path/to/page1.html", subsuite, "/path/to/page2.html");
+- uses IE's undocumented RuntimeObject to find test functions instead of searching through the text of the page (thanks to Dean McNamee and Dan Pupius)
+- new "supressCacheBuster" URL parameter
+
+SERVER
+- start-browser scripts in bin
+- Migration of Java code to require Java 5.0
+- StandaloneTest and DistributedTest continue on after a failure in a particular browser or remote server respectively
+- StandaloneTest has a suite() method that makes the test run have multiple JUnit tests, one per browser
+- DistribuedTest has a suite() method that makes the test run have multiple JUnit tests, one per remote machine URL
+- Change to XML output format of test runs to include more information and be more hierarchical (machine->browser->test page->test case)
+- Logs are now prefixed with "JSTEST-" in order to match JUnit's "TEST-"
+- Logs now contain the browser ID (e.g. JSTEST-12345.5.xml means browser with ID 5); displayer servlet now takes an id and a browserId parameter
+- added support for launching the default system browser on Windows and UNIX (see the constant on net.jsunit.StandaloneTest)
+- StandaloneTest now runs tests in all specified browsers, even after an earlier browser failed
+- New "config" servlet that shows the configuration as XML of the server
+- Distributed Tests now send back an XML document that includes the XML for browser results as opposed to just a "success"/"failure" node
+- runner servlet takes a "url" querystring parameter that overrides the server's url property
+- test run requests to the JsUnitServer are queued up and in serial so that different clients don't step on eachother
+- addition of new configuration parameter, "closeBrowsersAfterTestRuns", for whether to attempt to close browsers after test runs
+- addition of new configuration property, "timeoutSeconds", for how long to time browsers out
+- addition of new configuration property, "ignoreUnresponsiveRemoteMachines", for whether to care that remote machines don't uccessfully run the tests
+- addition of new configuration property, "description", which contains a human-readable description of the server
+
+BUGS
+- fix for "retry test run" bug
+- bug 1070436 fixed
+- bug with multiple browsers and resultId specified fixed
+- Bug 1281427 fixed (test submission for Opera)
+- Safari fix
+- Bug 1431040 fixed
+
+ECLIPSE PLUGIN
+- Eclipse plugin version 1.0

0 comments on commit d539c6b

Please sign in to comment.