Closed Bug 1045875 Opened 10 years ago Closed 9 years ago

Symbols defined in a header file in a marionette-webapi test somehow are not there in the test itself

Categories

(Remote Protocol :: Marionette, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ehsan.akhgari, Unassigned)

References

Details

STR:

1. Apply https://gist.github.com/ehsan/3cb97af003a1e8418cd9.  (My tree's base revision is https://hg.mozilla.org/mozilla-central/rev/e566ade6f17e)
2. Run the marionette-webapi tests in dom/icc.  test_icc_info.js will fail because Ci is undefined.

Now, Ci _is_ defined at the global scope in icc_header.js.  If I add |const Ci = SpecialPowers.Ci;| to the global scope of test_icc_info.js, the test fails because of the redeclaration of Ci.  And if I change line 40 in test_icc_info.js to use SpecialPowers.Ci instead of Ci, the test passes as well.

I can't really explain this, but I'm going to move on with the workaround mentioned above.
Blocks: 1043562
WebAPI Tests are no longer run so am closing these as wontfix
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.