Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10662 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

[PATCH] Correct testLog option in generated Test.Unit.Runner

Reported by: nicwilliams Assigned to: core
Priority: normal Milestone: 2.x
Component: Plugins Version: edge
Severity: normal Keywords: javascript_test
Cc:

Description

In the plugin javascript_test, the generated Test.Unit.Runner sample passes a "testlog" option incorrectly.

Instead of

  new Test.Unit.Runner({
    setup: function() {..}
    ...
  }, "testlog");

It should be

  new Test.Unit.Runner({
    setup: function() {..}
    ...
  }, {testLog: "testlog"});

The patch also adds some helper documentation about support for multiple new Test.Unit.Runner() in one html file.

Patch: apply the patch from the root of the javascript_test plugin.

Attachments

generated_html_correctly_specifies_testlog_option_plus_docco.patch (0.8 kB) - added by nicwilliams on 01/01/08 12:12:08.

Change History

01/01/08 12:12:08 changed by nicwilliams

  • attachment generated_html_correctly_specifies_testlog_option_plus_docco.patch added.

01/09/08 17:05:33 changed by madrobby

  • status changed from new to closed.
  • resolution set to fixed.

(In [8610]) javascript_test: update prototype/unittest.js to latest 1.6.0.1 versions, generate public/javascripts/name.js file when using the generator, add option to use application-provided prototype.js file instead of the one that comes with the pluging. Fixes #10662, #10667, #10669, #10694, #10697 and #10732.