Closed Bug 481578 Opened 15 years ago Closed 15 years ago

Running a test fills error console with warnings (undefined property subject.documentLoaded)

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: whimboo, Unassigned)

Details

(Whiteboard: [verified-mozmill-1.1])

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090304 Shiretoko/3.1b3pre ID:20090304022008 and r414

Running any test fills the error console with hundreds(?) of warnings:

Warning: reference to undefined property subject.documentLoaded
Source File: file:///Volumes/data/mozilla/qa/mozmill/trunk/mozmill/extension/resource/modules/controller.js
Line: 89


function waitForEval (expression, timeout, interval, subject) {
  if (interval == undefined) {
    interval = 100;
  }
  if (timeout == undefined) {
    timeout = 30000;
  }
  
  var self = {};
  self.counter = 0;
  self.result = eval(expression);
  
  function wait(){
=>  self.result = eval(expression);
    self.counter += interval;
  }
Changes a check for == true to != undefined. If this doesn't fix it then there is no way that we can fix it.

Committed revision 415.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Yeah. Warning is gone.
Status: RESOLVED → VERIFIED
Whiteboard: [verified-mozmill-1.1]
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.