Skip to content

Commit

Permalink
Protect two test cases from being run in-browser because Firefox uses
Browse files Browse the repository at this point in the history
different DOM classes from env.js for table cells.
  • Loading branch information
gleneivey committed Apr 19, 2010
1 parent 1f81ff9 commit d7c6456
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions specs/html/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,14 +536,20 @@ test('HTMLTableDataCellElement', function() {
var element;
element = document.createElement('td');
ok(element, 'element created');
equals(element.toString(), '[object HTMLTableDataCellElement]', 'toString');
if (runningUnderEnvjs())
equals(element.toString(), '[object HTMLTableDataCellElement]',
'toString');
// don't run in-browser, FF uses HTMLTableCellElement
});

test('HTMLTableHeaderCellElement', function() {
var element;
element = document.createElement('th');
ok(element, 'element created');
equals(element.toString(), '[object HTMLTableHeaderCellElement]', 'toString');
if (runningUnderEnvjs())
equals(element.toString(), '[object HTMLTableHeaderCellElement]',
'toString');
// don't run in-browser, FF uses HTMLTableCellElement
});

test('HTMLTableRowElement', function() {
Expand Down

1 comment on commit d7c6456

@client9
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah saw these. Need to investigate further.
Thanks.

The firefox test runner is SUPER HOT by the way.

Please sign in to comment.