Changeset 1580

Show
Ignore:
Timestamp:
11/15/07 17:28:00 (6 years ago)
Author:
gyuque
Message:

lang/javascript/javascript-xpath/trunk/test/functional/logger.js: added a method.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/javascript-xpath/trunk/test/functional/logger.js

    r1531 r1580  
    8282    this.theadRow = document.createElement('tr'); 
    8383    this.thead.appendChild(this.theadRow); 
     84    this.countCols = 0; 
    8485 
    8586    this.appendHeader('expression'); 
     
    9293    this.count = 0; 
    9394    this.id = id; 
     95     
    9496}; 
    9597 
     
    99101        th.appendChild(document.createTextNode(label)); 
    100102        this.theadRow.appendChild(th); 
    101  
     103        this.countCols++; 
    102104        return th; 
    103105    }, 
     
    132134        } 
    133135 
     136    }, 
     137     
     138    logFullSpan: function(content) { 
     139        var td, tr = document.createElement('tr'); 
     140        this.tbody.appendChild(tr); 
     141        td = document.createElement('td'); 
     142        td.appendChild(content); 
     143        tr.appendChild(td); 
     144        td.setAttribute("colSpan", this.countCols); 
    134145    } 
    135146};