w3c / Mobile-Checker

The Mobile Checker is a tool for Web developers who want to make their Web page or Web app work better on mobile devices.
https://validator.w3.org/mobile-alpha/
MIT License
322 stars 84 forks source link

redirect.js test fail #137

Open gbaudusseau opened 8 years ago

gbaudusseau commented 8 years ago

just tested and I get the following error:


public/tmp/screenshots/05f6f77d-b94b-4da8-87aa-dc1fdb0f836b.png
/Users/guillaume/Documents/W3C/Mobile-Checker/lib/checks/performance/redirects.js:21
            var mainUrl = har.log.entries[0].request.url;
                                            ^

TypeError: Cannot read property 'request' of undefined
    at .<anonymous> (/Users/guillaume/Documents/W3C/Mobile-Checker/lib/checks/performance/redirects.js:21:45)
    at emitTwo (events.js:111:20)
    at emit (events.js:191:7)
    at reportNetworkTraffic (/Users/guillaume/Documents/W3C/Mobile-Checker/node_modules/mobile-web-browser-emulator/lib/browser-emulator.js:110:14)
    at /Users/guillaume/Documents/W3C/Mobile-Checker/node_modules/browsermob-proxy/index.js:55:41
    at IncomingMessage.<anonymous> (/Users/guillaume/Documents/W3C/Mobile-Checker/node_modules/browsermob-proxy/index.js:211:17)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:934:12)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)