... word test is run asa test method.Listing 1.10 A simple testCase functionfunction testCase(name, tests) {assert.count = 0;var successful = 0;var testCount = 0;for (var test in tests) ... (var test in tests) {if (!/ ^test/ .test( test)) {continue;}testCount++;try {tests [test] ();output (test, "#0c0");successful++;} catch (e) {output (test + " failed: " ... failures</strong>",color);}Listing 1.11 uses testCase to restructure the strftime test into a test case.Listing 1.11 strftime test casevar date = new Date(2009, 9, 2);testCase("strftime test& quot;, {" ;test format...