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

Changeset 9039

Show
Ignore:
Timestamp:
03/16/08 20:00:07 (7 months ago)
Author:
tobie
Message:

prototype: Instanciate Test.Unit.Logger on window load.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • spinoffs/prototype/trunk/CHANGELOG

    r9037 r9039  
     1* Instanciate Test.Unit.Logger on window load. [Tobie Langel] 
     2 
     3* Unit tests clean-up. [Tobie Langel] 
     4 
    15* Refactor String#escapeHTML to avoid using the `with` statement. [Tobie Langel] 
    26 
  • spinoffs/prototype/trunk/test/lib/unittest.js

    r8644 r9039  
    156156     
    157157    options.resultsURL = this.queryParams.resultsURL; 
    158     options.testLog = $(options.testLog); 
    159158     
    160159    this.tests = this.getTests(testcases); 
    161160    this.currentTest = 0; 
    162     this.logger = new Test.Unit.Logger(options.testLog); 
     161 
    163162    Event.observe(window, "load", function() { 
     163      this.logger = new Test.Unit.Logger($(options.testLog)); 
    164164      this.runTests.bind(this).delay(0.1); 
    165165    }.bind(this));