%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
'use strict'; require('../common'); const { WPTRunner } = require('../common/wpt'); const runner = new WPTRunner('url'); // Needed to access to DOMException. runner.setFlags(['--expose-internals']); // DOMException is needed by urlsearchparams-constructor.any.js runner.setInitScript(` const { internalBinding } = require('internal/test/binding'); const { DOMException } = internalBinding('messaging'); global.DOMException = DOMException; `); runner.setScriptModifier((obj) => { if (obj.filename.includes('toascii.window.js')) { // `a` and `area` in `toascii.window.js` is for testing `Element` that // created via `document.createElement`. So we need to ignore them and just // test `URL`. obj.code = obj.code.replace(/\["url", "a", "area"\]/, '[ "url" ]'); } else if (typeof FormData === 'undefined' && obj.filename.includes('urlsearchparams-constructor.any.js')) { // TODO(XadillaX): Remove this `else if` after `FormData` is supported. // Ignore test named `URLSearchParams constructor, FormData.` because we do // not have `FormData`. obj.code = obj.code.replace( /('URLSearchParams constructor, object\.'\);[\w\W]+)test\(function\(\) {[\w\W]*?}, 'URLSearchParams constructor, FormData\.'\);/, '$1'); } }); runner.pretendGlobalThisAs('Window'); runner.runJsTests();