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

VERIFIED FIXED

Status

Testing Graveyard
Mozmill
VERIFIED FIXED
9 years ago
2 years ago

People

(Reporter: whimboo, Unassigned)

Tracking

Details

(Whiteboard: [verified-mozmill-1.1])

(Reporter)

Description

9 years ago
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
Last Resolved: 9 years ago
Resolution: --- → FIXED
(Reporter)

Comment 2

9 years ago
Yeah. Warning is gone.
Status: RESOLVED → VERIFIED
Whiteboard: [verified-mozmill-1.1]
(Assignee)

Updated

2 years ago
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.