Prebid.js icon indicating copy to clipboard operation
Prebid.js copied to clipboard

PubGears Unit Tests Fail on IE

Open dbemiller opened this issue 9 years ago • 2 comments

Type of issue

Bug

Description

This has been happening for a long time... but I found the root cause while working on #1355, after fixing the source-maps so that I could see line numbers.

The PubGears unit tests use CustomEvent, which isn't supported on IE.

These test failures make Prebid releases harder to validate, and prevent us from automating them.

Failed test output

5) should call bidManager.addBidResponse() when bid received
     PubGearsAdapter bids received
     TypeError: Object doesn't support this action
   at Anonymous function (webpack:///test/spec/modules/pubgearsBidAdapter_spec.js:202:6 <- test/spec/modules/pubgearsBidAdapter_spec.js:2615:7)

6) should send correct bid response object when receiving onBidResponse event
     PubGearsAdapter bids received
     TypeError: Object doesn't support this action
   at Anonymous function (webpack:///test/spec/modules/pubgearsBidAdapter_spec.js:238:6 <- test/spec/modules/pubgearsBidAdapter_spec.js:2651:7)

7) should send $0 bid as no-bid response
     PubGearsAdapter bids received
     TypeError: Object doesn't support this action
   at Anonymous function (webpack:///test/spec/modules/pubgearsBidAdapter_spec.js:276:6 <- test/spec/modules/pubgearsBidAdapter_spec.js:2689:7)

dbemiller avatar Jul 10 '17 20:07 dbemiller

@Walexander Please look into these when you get the chance.

dbemiller avatar Jul 10 '17 20:07 dbemiller

Closing with Pubgears adapter and test not in 1.x

matthewlane avatar Feb 08 '18 22:02 matthewlane