Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6675931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:55:22+00:00 2026-05-26T03:55:22+00:00

I am using QUnit to perform various simple tests on my website. One of

  • 0

I am using QUnit to perform various simple tests on my website. One of the tests is creating a dialog, showing it and then closing it. The test runs fine, but when run on Firefox with Firebug activated I get an error:

3. Introduced global variable(s): _firebug

I can live with it, but it is annoying: the same code on Chrome runs fine. I ruled out jQuery UI as the culprit since the same error appears without it. However, running without Firebug or without console.log traces does not show the problem.

I grepped all the javascript code I am using and found no mention of any “firebug” variables; and Google was silent on the matter. I want my green screen (all tests passed) back! Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:55:23+00:00Added an answer on May 26, 2026 at 3:55 am

    After googling a little bit more, I am not the first to find this problem: badglobals.js, blog, Google groups. The solution to my particular problem (QUnit reports a leaky global variable) is to add the declaration of the global before starting the tests, for example before the first module is run:

    var _firebug;
    module('myModule');
    

    I am seeing a spurious xdc variable too; same solution. My first QUnit test file now looks like this:

    /* declare spurious Firebug globals */
    var _firebug;
    var _xdc_;
    
    /* run tests */
    module('myModule');
    

    My bar is all green now, even with noglobals checked! I hope this helps anyone else who finds this annoying issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm starting to write some unit test for my javascript code using qunit and
Can I test live websites using QUnit? For example, can I write a test
I've been using QUnit to test some javascript in my Visual Studio 11 solution
I'm trying to run some unit tests using QUnit written in CoffeeScript but there
I have started testing my UI using qUnit, so I need to simulate some
I am using qunit and jquery. Latest version of both. In my code when
I'm curious to if it would be valuable, I'd like to start using QUnit
This is my QUnit test: /// <reference path=~/Scripts/global.js /> module(Global.js); test(Test getParameterFromQueryStringByName, function ()
I have a few pure-JavaScript, client-side tests using PhantomJS. These I'd like to integrate
Using: VS2008, Win32, C/C++ I'm trying to encapsulate my entire dialog window into a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.