[Pkg-javascript-devel] Bug#1011794: node-jsdom: FTBFS: tests fail

Lucas Nussbaum lucas at debian.org
Thu May 26 20:12:41 BST 2022


Source: node-jsdom
Version: 19.0.0+~cs153.23.47-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20220525 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> cd debian/build_modules/webidl2 && babeljs-7 -d dist --presets @babel/preset-env --plugins @babel/plugin-transform-runtime lib/
> Successfully compiled 31 files with Babel (2034ms).
> dh_auto_build --buildsystem=nodejs
> parse5/lerna.json found
> 
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> Found debian/nodejs/xmlchars/build
> 	cd ./xmlchars && sh -ex ../debian/nodejs/xmlchars/build
> + tsc --outDir .
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> Found debian/nodejs/domexception/build
> 	cd ./domexception && sh -ex ../debian/nodejs/domexception/build
> + node scripts/generate.js
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> Found debian/nodejs/whatwg-url/build
> 	cd ./whatwg-url && sh -ex ../debian/nodejs/whatwg-url/build
> + node scripts/transform.js
> No build command found, searching known files
> Found debian/nodejs/whatwg-encoding/build
> 	cd ./whatwg-encoding && sh -ex ../debian/nodejs/whatwg-encoding/build
> + mkdir -p lib
> + cp ../debian/nodejs/whatwg-encoding/missing/labels-to-names.json ../debian/nodejs/whatwg-encoding/missing/supported-names.json lib/
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> Found debian/nodejs/saxes/build
> 	cd ./saxes && sh -ex ../debian/nodejs/saxes/build
> + tsc
> + mv build/dist/saxes.d.ts build/dist/saxes.js build/dist/saxes.js.map .
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> No build command found, searching known files
> cp debian/whatwg-encoding/* whatwg-encoding/lib/
> cp debian/tr46/* tr46/lib/
> node ./scripts/webidl/convert.js
> node ./scripts/generate-js-globals.js
> cp debian/missing/* lib/jsdom/living/generated/
> ln -s lib/jsdom/living/generated .
> ln -s ../scripts/eslint-plugin node_modules || true
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test --buildsystem=nodejs
> parse5/lerna.json found
> 
> 	ln -s ../debian/tests/test_modules/mocha-sugar-free node_modules/mocha-sugar-free
> 	ln -s ../debian/tests/test_modules/server-destroy node_modules/server-destroy
> 	ln -s ../. node_modules/jsdom
> 	cd ./decimaljs && sh -ex ../debian/nodejs/decimaljs/test
> + node test/test.js
> 
>  Testing decimal.js
> 
>  Testing absoluteValue... 100 of 100 tests passed in 3 ms
>  Testing acos... 50 of 50 tests passed in 72 ms
>  Testing acosh... 50 of 50 tests passed in 24 ms
>  Testing asin... 50 of 50 tests passed in 31 ms
>  Testing asinh... 50 of 50 tests passed in 12 ms
>  Testing atan... 50 of 50 tests passed in 40 ms
>  Testing atan2... 100 of 100 tests passed in 20 ms
>  Testing atanh... 50 of 50 tests passed in 17 ms
>  Testing cubeRoot... 50 of 50 tests passed in 11 ms
>  Testing ceil... 50 of 50 tests passed in 1 ms
>  Testing clamp... 29 of 29 tests passed in 0 ms
>  Testing clone... 65 of 65 tests passed in 2 ms
>  Testing comparedTo... 1000 of 1000 tests passed in 8 ms
>  Testing config... 206 of 206 tests passed in 7 ms
>  Testing cos... 101 of 101 tests passed in 27 ms
>  Testing cosh... 100 of 100 tests passed in 14 ms
>  Testing Decimal... 987 of 987 tests passed in 14 ms
>  Testing dividedBy... 1000 of 1000 tests passed in 27 ms
>  Testing dividedToIntegerBy... 1000 of 1000 tests passed in 16 ms
>  Testing decimalPlaces and precision... 133 of 133 tests passed in 1 ms
>  Testing exp... 100 of 100 tests passed in 17 ms
>  Testing floor... 100 of 100 tests passed in 0 ms
>  Testing hypot... 100 of 100 tests passed in 14 ms
>  Testing immutability... 3311 of 3311 tests passed in 217 ms
>  Testing integer pow... 500 of 500 tests passed in 13 ms
>  Testing isFinite, isInteger, isNaN, isNegative, isZero, isDecimal... 214 of 214 tests passed in 1 ms
>  Testing ln... 499 of 499 tests passed in 114 ms
>  Testing log... 200 of 200 tests passed in 83 ms
>  Testing log10... 500 of 500 tests passed in 122 ms
>  Testing log2... 200 of 200 tests passed in 80 ms
>  Testing min and max... 100 of 100 tests passed in 0 ms
>  Testing minus... 1000 of 1000 tests passed in 12 ms
>  Testing modulo... 1000 of 1000 tests passed in 55 ms
>  Testing negated... 200 of 200 tests passed in 1 ms
>  Testing plus... 1000 of 1000 tests passed in 16 ms
>  Testing pow... 108 of 108 tests passed in 50 ms
>  Testing random... 1000 of 1000 tests passed in 17 ms
>  Testing round... 500 of 500 tests passed in 4 ms
>  Testing sign... 16 of 16 tests passed in 0 ms
>  Testing sin... 100 of 100 tests passed in 28 ms
>  Testing sinh... 100 of 100 tests passed in 15 ms
>  Testing sqrt... 1000 of 1000 tests passed in 51 ms
>  Testing sum... 37 of 37 tests passed in 0 ms
>  Testing tan... 100 of 100 tests passed in 30 ms
>  Testing tanh... 100 of 100 tests passed in 31 ms
>  Testing times... 1000 of 1000 tests passed in 9 ms
>  Testing toBinary... 327 of 327 tests passed in 23 ms
>  Testing toDecimalPlaces... 500 of 500 tests passed in 6 ms
>  Testing toExponential... 500 of 500 tests passed in 5 ms
>  Testing toFixed... 500 of 500 tests passed in 5 ms
>  Testing toFraction... 200 of 200 tests passed in 46 ms
>  Testing toHex... 309 of 309 tests passed in 12 ms
>  Testing toNearest... 157 of 157 tests passed in 1 ms
>  Testing toNumber... 40 of 40 tests passed in 0 ms
>  Testing toOctal... 293 of 293 tests passed in 9 ms
>  Testing toPrecision... 500 of 500 tests passed in 5 ms
>  Testing toSignificantDigits... 500 of 500 tests passed in 6 ms
>  Testing toString... 338 of 338 tests passed in 2 ms
>  Testing trunc... 100 of 100 tests passed in 1 ms
>  Testing valueOf... 40 of 40 tests passed in 0 ms
> 
>  In total, 22610 of 22610 tests passed in 1.518 secs.
> 
> 	cd ./is-potential-custom-element-name && sh -ex ../debian/nodejs/is-potential-custom-element-name/test
> + mocha
> 
> 
>   is-potential-custom-element-name
>     undefined returns a boolean indicating whether the given string is a potential custom element name
>     undefined avoids excess backtracking (50ms)
> 
> 
>   2 passing (57ms)
> 
> 	cd ./w3c-hr-time && sh -ex ../debian/nodejs/w3c-hr-time/test
> + jest --ci
> PASS test/mocked-date.test.js
>   ✓ imports successfully when Date is faked (428 ms)
> 
> PASS test/normal.test.js
>   ✓ global monotonic clock corresponds with setTimeout (2007 ms)
>   ✓ performance.now() returns duration from initialization of Performance object (2003 ms)
>   ✓ performance.timeOrigin returns time at initialization of Performance object (1 ms)
>   ✓ performance.toJSON() returns an object with timeOrigin (2 ms)
>   ✓ performance.now() has submillisecond resolution (1 ms)
>   ✓ performance.timeOrigin has submillisecond resolution (2 ms)
> 
> PASS test/inaccurate-clock-only-hrtime.test.js
>   ✓ global monotonic clock corresponds with setTimeout (2007 ms)
>   ✓ performance.now() returns duration from initialization of Performance object (2005 ms)
>   ✓ performance.timeOrigin returns time at initialization of Performance object (2 ms)
>   ✓ performance.toJSON() returns an object with timeOrigin (3 ms)
>   ✓ performance.now() always returns integers (4 ms)
>   ✓ performance.timeOrigin always returns integers (3 ms)
> 
> PASS test/clock-drift.test.js
>   ✓ global monotonic clock corresponds with setTimeout and is not affected by clock drift (2006 ms)
>   ✓ performance.now() returns duration from initialization of Performance object (2003 ms)
>   ✓ performance.timeOrigin returns time at initialization of Performance object (3 ms)
>   ✓ performance.toJSON() returns an object with timeOrigin (3 ms)
> 
> PASS test/inaccurate-clock.test.js
>   ✓ global monotonic clock corresponds with setTimeout (2009 ms)
>   ✓ performance.now() returns duration from initialization of Performance object (2007 ms)
>   ✓ performance.timeOrigin returns time at initialization of Performance object (4 ms)
>   ✓ performance.toJSON() returns an object with timeOrigin (4 ms)
>   ✓ performance.now() always returns integers (7 ms)
>   ✓ performance.timeOrigin always returns integers (5 ms)
> 
> PASS test/inaccurate-clock-only-date.test.js (5.209 s)
>   ✓ global monotonic clock corresponds with setTimeout (2006 ms)
>   ✓ performance.now() returns duration from initialization of Performance object (2004 ms)
>   ✓ performance.timeOrigin returns time at initialization of Performance object (3 ms)
>   ✓ performance.toJSON() returns an object with timeOrigin (3 ms)
>   ✓ performance.now() always returns integers (2 ms)
>   ✓ performance.timeOrigin always returns integers (3 ms)
> 
> Test Suites: 6 passed, 6 total
> Tests:       29 passed, 29 total
> Snapshots:   0 total
> Time:        6.694 s
> Ran all test suites.
> 	cd ./w3c-xmlserializer && sh -ex ../debian/nodejs/w3c-xmlserializer/test
> + ln -s .. ../node_modules/jsdom
> ln: failed to create symbolic link '../node_modules/jsdom/..': File exists
> + true
> + NODE_PATH=../node_modules jest --ci
> PASS test/test.js (9.912 s)
>   Derived from WPT xml-serialization.xhtml
>     ✓ Comment: containing -- (4 ms)
>     ✓ Comment: starting with -
>     ✓ Comment: ending with -
>     ✓ Comment: containing -->
>     ✓ DocumentType: empty public and system id (1 ms)
>     ✓ DocumentType: empty system id
>     ✓ DocumentType: empty public id (1 ms)
>     ✓ DocumentType: non-empty public and system id
>     ✓ DocumentType: 'APOSTROPHE' (U+0027)
>     ✓ DocumentType: 'QUOTATION MARK' (U+0022)
>     ✓ DocumentType: 'APOSTROPHE' (U+0027) and 'QUOTATION MARK' (U+0022) (1 ms)
>     ✓ Element: href attributes are not percent-encoded (4 ms)
>     ✓ Element: query parts in href attributes are not percent-encoded (1 ms)
>     ✓ ProcessingInstruction: empty data (1 ms)
>     ✓ ProcessingInstruction: non-empty data
>     ✓ ProcessingInstruction: target contains xml
>     ✓ ProcessingInstruction: target contains a 'COLON' (U+003A) (1 ms)
>   Derived from WPT XMLSerializer-serializeToString.html
>     ✓ check XMLSerializer.serializeToString method could parsing xmldoc to string (6 ms)
>     ✓ Check if the default namespace is correctly reset. (4 ms)
>     ✓ Check if there is no redundant empty namespace declaration. (2 ms)
>     ✓ check XMLSerializer.serializeToString escapes attribute values for roundtripping (2 ms)
>     ✓ Check if unknown prefixes are handled correctly (2 ms)
>     ✓ Check CDATASection nodes are serialized correctly (2 ms)
>   Our own test cases
>     ✓ Check prefix memoization (GH-5) (2 ms)
>     ✓ Serializes custom prefixes (4 ms)
>     ✓ Serializes tab characters (2 ms)
> 
> Test Suites: 1 passed, 1 total
> Tests:       26 passed, 26 total
> Snapshots:   0 total
> Time:        10.365 s
> Ran all test suites.
> + rm -f ../node_modules/jsdom
> 	cd ./whatwg-url && sh -ex ../debian/nodejs/whatwg-url/test
> + jest --ci test/mdn.js test/file-url-origin.js
> PASS test/file-url-origin.js
> PASS test/mdn.js
> 
> Test Suites: 2 passed, 2 total
> Tests:       3 passed, 3 total
> Snapshots:   0 total
> Time:        2.055 s
> Ran all test suites matching /test\/mdn.js|test\/file-url-origin.js/i.
> 	cd ./xmlchars && sh -ex ../debian/nodejs/xmlchars/test
> + mocha
> 
> 
>   0 passing (1ms)
> 
> 	/bin/sh -ex debian/tests/pkg-js/test
> + mocha test/api
> 
> 
>   JSDOM instances: basics
>     undefined should have a window and a document (45ms)
>     undefined should have a document with documentElement <html> when no arguments are passed
> 
>   JSDOM() constructor first argument
>     undefined should populate the resulting document with the given HTML
>     undefined should give the same document innerHTML for empty and whitespace and omitted strings (41ms)
>     undefined should coerce null to a string
>     error reporting
>       undefined should include the URL when reporting an XML parse error
> 
>   Cookie processing
>     undefined should have correct secure and HTTP-only cookie semantics (95ms)
>     undefined should share cookies when a cookie jar is shared
>     document.cookie
>       undefined reflects back what is set to it
>       undefined reflects back cookies set from the server while requesting the page
>       undefined reflects back cookies set from the server while requesting a script
>       undefined reflects back cookies set from the server on an XHR response
>       undefined should not crash or set cookies when requesting a file URL (GH-1180)
>       undefined should not contain expired cookies (GH-1027)
>     sent with requests
>       undefined should send the Cookies header with a script request
>       undefined should send the Cookies header with an XHR request
>       undefined should gather cookies from redirects (GH-1089)
> 
>   API: encoding detection
>     constructor, given a string
>       undefined should default to UTF-8 when passing a string
>       undefined should default to UTF-8 when passing nothing
>       undefined should default to UTF-8 when passing null
>     constructor, given binary data
>       with no contentType option given
>         Buffer
>           undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-5
>           undefined should sniff no-bom-charset-http-equiv-tis-620.html as windows-874
>           undefined should sniff no-bom-charset-koi8.html as KOI8-R
>           undefined should sniff no-bom-charset-utf-16.html as UTF-8
>           undefined should sniff no-bom-charset-utf-16be.html as UTF-8
>           undefined should sniff no-bom-charset-utf-16le.html as UTF-8
>           undefined should sniff no-bom-no-charset.html as windows-1252
>           undefined should sniff utf-8-bom.html as UTF-8
>           undefined should sniff utf-16be-bom.html as UTF-16BE
>           undefined should sniff utf-16le-bom.html as UTF-16LE
>         Uint8Array
>           undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-5
>           undefined should sniff no-bom-charset-http-equiv-tis-620.html as windows-874
>           undefined should sniff no-bom-charset-koi8.html as KOI8-R
>           undefined should sniff no-bom-charset-utf-16.html as UTF-8
>           undefined should sniff no-bom-charset-utf-16be.html as UTF-8
>           undefined should sniff no-bom-charset-utf-16le.html as UTF-8
>           undefined should sniff no-bom-no-charset.html as windows-1252
>           undefined should sniff utf-8-bom.html as UTF-8
>           undefined should sniff utf-16be-bom.html as UTF-16BE
>           undefined should sniff utf-16le-bom.html as UTF-16LE
>         ArrayBuffer
>           undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-5
>           undefined should sniff no-bom-charset-http-equiv-tis-620.html as windows-874
>           undefined should sniff no-bom-charset-koi8.html as KOI8-R
>           undefined should sniff no-bom-charset-utf-16.html as UTF-8
>           undefined should sniff no-bom-charset-utf-16be.html as UTF-8
>           undefined should sniff no-bom-charset-utf-16le.html as UTF-8
>           undefined should sniff no-bom-no-charset.html as windows-1252
>           undefined should sniff utf-8-bom.html as UTF-8
>           undefined should sniff utf-16be-bom.html as UTF-16BE
>           undefined should sniff utf-16le-bom.html as UTF-16LE
>         DataView
>           undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-5
>           undefined should sniff no-bom-charset-http-equiv-tis-620.html as windows-874
>           undefined should sniff no-bom-charset-koi8.html as KOI8-R
>           undefined should sniff no-bom-charset-utf-16.html as UTF-8
>           undefined should sniff no-bom-charset-utf-16be.html as UTF-8
>           undefined should sniff no-bom-charset-utf-16le.html as UTF-8
>           undefined should sniff no-bom-no-charset.html as windows-1252
>           undefined should sniff utf-8-bom.html as UTF-8
>           undefined should sniff utf-16be-bom.html as UTF-16BE
>           undefined should sniff utf-16le-bom.html as UTF-16LE
>         Int8Array
>           undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-5
>           undefined should sniff no-bom-charset-http-equiv-tis-620.html as windows-874
>           undefined should sniff no-bom-charset-koi8.html as KOI8-R
>           undefined should sniff no-bom-charset-utf-16.html as UTF-8
>           undefined should sniff no-bom-charset-utf-16be.html as UTF-8
>           undefined should sniff no-bom-charset-utf-16le.html as UTF-8
>           undefined should sniff no-bom-no-charset.html as windows-1252
>           undefined should sniff utf-8-bom.html as UTF-8
>           undefined should sniff utf-16be-bom.html as UTF-16BE
>           undefined should sniff utf-16le-bom.html as UTF-16LE
>       with a contentType option specifying csiso88598e
>         Buffer
>           undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-8
>           undefined should sniff no-bom-charset-http-equiv-tis-620.html as ISO-8859-8
>           undefined should sniff no-bom-charset-koi8.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16be.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16le.html as ISO-8859-8
>           undefined should sniff no-bom-no-charset.html as ISO-8859-8
>           undefined should sniff utf-8-bom.html as UTF-8
>           undefined should sniff utf-16be-bom.html as UTF-16BE
>           undefined should sniff utf-16le-bom.html as UTF-16LE
>         Uint8Array
>           undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-8
>           undefined should sniff no-bom-charset-http-equiv-tis-620.html as ISO-8859-8
>           undefined should sniff no-bom-charset-koi8.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16be.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16le.html as ISO-8859-8
>           undefined should sniff no-bom-no-charset.html as ISO-8859-8
>           undefined should sniff utf-8-bom.html as UTF-8
>           undefined should sniff utf-16be-bom.html as UTF-16BE
>           undefined should sniff utf-16le-bom.html as UTF-16LE
>         ArrayBuffer
>           undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-8
>           undefined should sniff no-bom-charset-http-equiv-tis-620.html as ISO-8859-8
>           undefined should sniff no-bom-charset-koi8.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16be.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16le.html as ISO-8859-8
>           undefined should sniff no-bom-no-charset.html as ISO-8859-8
>           undefined should sniff utf-8-bom.html as UTF-8
>           undefined should sniff utf-16be-bom.html as UTF-16BE
>           undefined should sniff utf-16le-bom.html as UTF-16LE
>         DataView
>           undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-8
>           undefined should sniff no-bom-charset-http-equiv-tis-620.html as ISO-8859-8
>           undefined should sniff no-bom-charset-koi8.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16be.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16le.html as ISO-8859-8
>           undefined should sniff no-bom-no-charset.html as ISO-8859-8
>           undefined should sniff utf-8-bom.html as UTF-8
>           undefined should sniff utf-16be-bom.html as UTF-16BE
>           undefined should sniff utf-16le-bom.html as UTF-16LE
>         Int8Array
>           undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-8
>           undefined should sniff no-bom-charset-http-equiv-tis-620.html as ISO-8859-8
>           undefined should sniff no-bom-charset-koi8.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16be.html as ISO-8859-8
>           undefined should sniff no-bom-charset-utf-16le.html as ISO-8859-8
>           undefined should sniff no-bom-no-charset.html as ISO-8859-8
>           undefined should sniff utf-8-bom.html as UTF-8
>           undefined should sniff utf-16be-bom.html as UTF-16BE
>           undefined should sniff utf-16le-bom.html as UTF-16LE
>     fromFile
>       undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-5
>       undefined should sniff no-bom-charset-http-equiv-tis-620.html as windows-874
>       undefined should sniff no-bom-charset-koi8.html as KOI8-R
>       undefined should sniff no-bom-charset-utf-16.html as UTF-8
>       undefined should sniff no-bom-charset-utf-16be.html as UTF-8
>       undefined should sniff no-bom-charset-utf-16le.html as UTF-8
>       undefined should sniff no-bom-no-charset.html as windows-1252
>       undefined should sniff utf-8-bom.html as UTF-8
>       undefined should sniff utf-16be-bom.html as UTF-16BE
>       undefined should sniff utf-16le-bom.html as UTF-16LE
>     fromURL
>       with no Content-Type header given
>         undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-5
>         undefined should sniff no-bom-charset-http-equiv-tis-620.html as windows-874
>         undefined should sniff no-bom-charset-koi8.html as KOI8-R
>         undefined should sniff no-bom-charset-utf-16.html as UTF-8
>         undefined should sniff no-bom-charset-utf-16be.html as UTF-8
>         undefined should sniff no-bom-charset-utf-16le.html as UTF-8
>         undefined should sniff no-bom-no-charset.html as windows-1252
>         undefined should sniff utf-8-bom.html as UTF-8
>         undefined should sniff utf-16be-bom.html as UTF-16BE
>         undefined should sniff utf-16le-bom.html as UTF-16LE
>       with a Content-Type header specifying csiso88598e
>         undefined should sniff no-bom-charset-http-equiv-no-quotes.html as ISO-8859-8
>         undefined should sniff no-bom-charset-http-equiv-tis-620.html as ISO-8859-8
>         undefined should sniff no-bom-charset-koi8.html as ISO-8859-8
>         undefined should sniff no-bom-charset-utf-16.html as ISO-8859-8
>         undefined should sniff no-bom-charset-utf-16be.html as ISO-8859-8
>         undefined should sniff no-bom-charset-utf-16le.html as ISO-8859-8
>         undefined should sniff no-bom-no-charset.html as ISO-8859-8
>         undefined should sniff utf-8-bom.html as UTF-8
>         undefined should sniff utf-16be-bom.html as UTF-16BE
>         undefined should sniff utf-16le-bom.html as UTF-16LE
> 
>   API: JSDOM.fragment()
>     undefined should return a DocumentFragment
>     undefined should return fragments with shared owner documents each time
>     undefined should return a fragment with no associated browsing context
>     undefined should allow basic DOM querying
>     undefined should allow basic DOM manipulation
>     undefined should ignore any options passed in
>     undefined should default to no nodes
> 
>   API: JSDOM.fromFile()
>     undefined should return a rejected promise for a nonexistant file
>     undefined should use the file contents of a file that exists
>     contentType option defaulting
>       undefined should default to text/html Content-Type even with no file extension
>       undefined should default to application/xhtml+xml Content-Type for .xhtml files
>       undefined should default to application/xhtml+xml Content-Type for .xht files
>       undefined should default to application/xhtml+xml Content-Type for .xml files
>       undefined should allow overriding the Content-Type for .xhtml files
>       undefined should allow overriding the Content-Type for .xht files
>       undefined should allow overriding the Content-Type for .xml files
>     url option defaulting
>       undefined should default to a file URL derived from the filename
>       undefined should allow overriding the URL
> 
>   Test cases only possible to test from the outside
>     undefined window.close() should prevent timers from registering and cause them to return 0
>     undefined window.close() should stop a setInterval() (115ms)
>     1) frees up callback handles passed to setTimeout
>     undefined window.close() should work from within a load event listener
> 
>   API: JSDOM.fromURL()
>     undefined should return a rejected promise for a bad URL
>     undefined should return a rejected promise for a 404
>     undefined should return a rejected promise for a 500
>     undefined should use the body of 200 responses
>     undefined should use the body of 301 responses (44ms)
>     undefined should be able to handle gzipped bodies
>     undefined should send a HTML-preferring Accept header
>     undefined should send an Accept-Language: en header
>     user agent
>       undefined should use the default user agent as the User-Agent header when none is given
>     referrer
>       undefined should reject when passing an invalid absolute URL for referrer
>       undefined should not send a Referer header when no referrer option is given
>       undefined should use the supplied referrer option as a Referer header
>       undefined should canonicalize referrer URLs before using them as a Referer header
>       undefined should use the redirect source URL as the referrer, overriding a provided one
>     inferring options from the response
>       url
>         undefined should use the URL fetched for a 200
>         undefined should preserve full request URL
>         undefined should use the ultimate response URL after a redirect
>         undefined should preserve fragments when processing redirects
>         undefined should disallow passing a URL manually
>       contentType
>         undefined should use the content type fetched for a 200
>         undefined should use the ultimate response content type after a redirect
>         undefined should disallow passing a content type manually
>     cookie jar integration
>       undefined should send applicable cookies in a supplied cookie jar
>       undefined should store cookies set by the server in a supplied cookie jar
>       undefined should store cookies set by the server in a newly-created cookie jar
> 
>   API: virtual console jsdomErrors
>     undefined should not emit invalid stylesheet errors due to spaces (GH-2123)
>     undefined should emit unhandled null value thrown in inline event handlers
> 
>   API: JSDOM class's methods
>     serialize
>       undefined should serialize the default document correctly
>       undefined should serialize a text-only document correctly
>       undefined should serialize a document with HTML correctly
>       undefined should serialize documents with omitted and varying-case html or body tags correctly (55ms)
>     nodeLocation
>       undefined should throw when includeNodeLocations is left as the default (false)
>       undefined should throw when includeNodeLocations is set explicitly to false
>       undefined should give the correct location for an element
>       undefined should give the correct location for a text node
>       undefined should give the correct location for a void element
>       undefined should return undefined for nodes created by innerHTML
>       undefined should return undefined for nodes created by outerHTML
>       undefined should return undefined for nodes created by createContextualFragment
>     getInternalVMContext
>       undefined should throw when runScripts is left as the default
>       undefined should work when runScripts is set to "outside-only"
>       undefined should work when runScripts is set to "dangerously"
>       undefined should return the result of the evaluation
>       undefined should work with the same script multiple times
>       undefined should allow passing through options (78ms)
>     reconfigure
>       windowTop
>         undefined should reconfigure the window.top property (tested from the outside)
>         undefined should reconfigure the window.top property (tested from the inside)
>         undefined should do nothing when no options are passed
>         undefined should change window.top to undefined if passing undefined
>       url
>         undefined should successfully change the URL
>         undefined should throw and not impact the URL when trying to change to an unparseable URL
>         undefined should not throw and not impact the URL when no url option is given
> 
>   API: runScripts constructor option
>     undefined should disallow other values
>     <script>s and eval()
>       undefined should not execute any scripts by default
>       undefined should not execute any scripts, even in iframes, by default (GH-1821)
>       undefined should execute <script>s and eval when set to "dangerously"
>       undefined should execute <script>s with correct location when set to "dangerously" and includeNodeLocations
>       undefined should only run eval when set to "outside-only"
>       undefined should ensure eval exists on iframes when set to "outside-only"
>       undefined should execute <script>s in iframes when set to "dangerously"
>     <noscript> children
>       undefined should be considered text when runScripts is set to "dangerously"
>       undefined should be considered nodes when runScripts is set to "outside-only"
>       undefined should be considered nodes when runScripts is left undefined
>     JS spec globals
>       undefined should include aliased globals by default
>       undefined should include fresh globals when set to "outside-only"
>       undefined should include fresh globals when set to "dangerously"
>     event handlers
>       when set to undefined
>         body onload handler set during parsing
>           undefined should not evaluate the handler (GH-1848)
>           undefined should not generate the body or Window property
>           undefined should still parse the handler as an attribute
>         body onhashchange handler set during parsing
>           undefined should not evaluate the handler
>           undefined should not generate the body or Window property
>           undefined should still parse the handler as an attribute
>         body onhashchange handler set via setAttribute
>           undefined should not evaluate the handler
>           undefined should not generate the body or Window property
>           undefined should still parse the handler as an attribute
>         div onclick handler set during parsing
>           undefined should not evaluate the handler
>           undefined should not generate the property
>           undefined should still parse the handler as an attribute
>         div onclick handler set via setAttribute
>           undefined should not evaluate the handler
>           undefined should not generate the property
>           undefined should still parse the handler as an attribute
>         body onhashchange handler set from the outside
>           undefined should evaluate the handler
>           undefined should return the handler from both Window and the body
>         Window onhashchange handler set from the outside
>           undefined should evaluate the handler
>           undefined should return the handler from both Window and the body
>         div onclick handler set from the outside
>           undefined should evaluate the handler
>           undefined should return the handler that was set
>       when set to "outside-only"
>         body onload handler set during parsing
>           undefined should not evaluate the handler (GH-1848)
>           undefined should not generate the body or Window property
>           undefined should still parse the handler as an attribute
>         body onhashchange handler set during parsing
>           undefined should not evaluate the handler
>           undefined should not generate the body or Window property
>           undefined should still parse the handler as an attribute
>         body onhashchange handler set via setAttribute
>           undefined should not evaluate the handler
>           undefined should not generate the body or Window property
>           undefined should still parse the handler as an attribute
>         div onclick handler set during parsing
>           undefined should not evaluate the handler
>           undefined should not generate the property
>           undefined should still parse the handler as an attribute
>         div onclick handler set via setAttribute
>           undefined should not evaluate the handler
>           undefined should not generate the property
>           undefined should still parse the handler as an attribute
>         body onhashchange handler set from the outside
>           undefined should evaluate the handler
>           undefined should return the handler from both Window and the body
>         Window onhashchange handler set from the outside
>           undefined should evaluate the handler
>           undefined should return the handler from both Window and the body
>         div onclick handler set from the outside
>           undefined should evaluate the handler
>           undefined should return the handler that was set
>       when set to "dangerously"
>         body onload handler set during parsing
>           undefined should evaluate the handler
>           undefined should generate the body and Window property
>           undefined should parse the handler as an attribute
>         body onhashchange handler set during parsing
>           undefined should not evaluate the handler
>           undefined should not generate the body or Window property
>           undefined should parse the handler as an attribute
>         body onhashchange handler set via setAttribute
>           undefined should evaluate the handler
>           undefined should generate the body and Window property
>           undefined should parse the handler as an attribute
>         div onclick handler set during parsing
>           undefined should not evaluate the handler
>           undefined should generate the property
>           undefined should parse the handler as an attribute
>         div onclick handler set via setAttribute
>           undefined should evaluate the handler
>           undefined should generate the property
>           undefined should parse the handler as an attribute
>         body onhashchange handler set from the outside
>           undefined should evaluate the handler
>           undefined should return the handler from both Window and the body
>         Window onhashchange handler set from the outside
>           undefined should evaluate the handler
>           undefined should return the handler from both Window and the body
>         div onclick handler set from the outside
>           undefined should evaluate the handler
>           undefined should return the handler that was set
> 
>   API: constructor options
>     (general tests)
>       undefined should not mutate the passed-in options object
>     referrer
>       undefined should allow customizing document.referrer via the referrer option
>       undefined should throw an error when passing an invalid absolute URL for referrer
>       undefined should canonicalize referrer URLs
>       undefined should have a default referrer URL of the empty string
>     url
>       undefined should allow customizing document URL via the url option
>       undefined should throw an error when passing an invalid absolute URL for url
>       undefined should canonicalize document URLs
>       undefined should have a default document URL of about:blank
>     contentType
>       undefined should have a default content type of text/html
>       undefined should allow customizing document content type via the contentType option
>       undefined should not show content type parameters in document.contentType (HTML)
>       undefined should not show content type parameters in document.contentType (XML)
>       undefined should disallow content types that are unparseable
>       undefined should disallow content types that are not XML or HTML
>     includeNodeLocations
>       undefined should throw when set to true alongside an XML content type
>     cookieJar
>       undefined should use the passed cookie jar
>       undefined should reflect changes to the cookie jar in document.cookie
>       undefined should have loose behavior by default when using the CookieJar constructor
>       undefined should have a loose-by-default cookie jar even if none is passed
>     virtualConsole
>       undefined should use the passed virtual console
>       undefined should have a virtual console even if none is passed
>     beforeParse
>       undefined should execute with a window and document but no nodes
>     pretendToBeVisual
>       not set
>         undefined document should be hidden and in prerender
>         undefined document should not have rAF
>         undefined child frame document should not have rAF
>       set to true
>         undefined document should be not be hidden and be visible
>         undefined document should call rAF
>         undefined child frame document should have rAF
>     storageQuota
>       not set
>         undefined should be 5000000 code units by default
>       set to 10000 code units
>         undefined should only allow setting data within the custom quota
>       set to 10000000 code units
>         undefined should only allow setting data within the custom quota
> 
>   API: resource loading configuration
>     undefined should disallow other values for resources
>     undefined should disallow custom resource loaders if they doesn't implement ResourceLoader
>     defaults
>       undefined should not download images
>       undefined should not download stylesheet links
>       undefined should not download scripts (even with runScripts: "dangerously")
>       undefined should not download iframes
>       undefined should not download frames
>     set to "usable"
>       undefined should not download images [canvas is not installed]
>       undefined should download and run scripts, if runScripts: "dangerously" is also set
>       undefined should not download or run scripts, if runScripts: "outside-only" is set
>       undefined should not download or run scripts, if runScripts is not set
>       resource returns 404
>         undefined should fire an error event downloading stylesheets
>         undefined should fire an error event downloading scripts
>         undefined should fire an error event downloading iframes
>         undefined should fire an error event downloading frames
>         undefined should fire a load event downloading via XHR
>       resource returns 503
>         undefined should fire an error event downloading stylesheets
>         undefined should fire an error event downloading scripts
>         undefined should fire an error event downloading iframes
>         undefined should fire an error event downloading frames
>         undefined should fire a load event downloading via XHR
>       resource is a nonexistant file: URL
>         undefined should fire an error event downloading stylesheets
>         undefined should fire an error event downloading scripts
>         undefined should fire an error event downloading iframes
>         undefined should fire an error event downloading frames
>         undefined should fire an error event downloading via XHR
>       canceling requests
>         undefined should abort a script request when closing the window (44ms)
>         undefined should cancel (with no event) an XHR request when closing the window
>         undefined should abort an image request when closing the window
>         undefined should abort a data: image request when closing the window
>         undefined should abort a script request (with no events) when stopping the window (40ms)
>         undefined should abort (with no events) an XHR request when stopping the window
>     With a custom resource loader
>       undefined should intercept JSDOM.fromURL()'s initial request
>       undefined should be able to change the user agent
>       undefined should be able to customize the proxy option
>       element option
>         undefined should receive script elements in options
>         undefined should receive stylesheet link elements in options
>     User agent (resources set to undefined)
>       undefined should have a default user agent following the correct pattern
>       undefined should inherit the default user agent to iframes
>     User agent (resources set to usable)
>       undefined should have a default user agent following the correct pattern
>       undefined should inherit the default user agent to iframes
> 
>   API: virtual consoles
>     undefined should send output only to the appropriate window
>     undefined should bubble up messages from iframes
>     undefined should show not-implemented messages as "jsdomError"s
>     passing through arguments
>       undefined should pass through arguments to assert
>       undefined should pass through arguments to clear
>       undefined should pass through arguments to count
>       undefined should pass through arguments to countReset
>       undefined should pass through arguments to debug
>       undefined should pass through arguments to dir
>       undefined should pass through arguments to dirxml
>       undefined should pass through arguments to error
>       undefined should pass through arguments to group
>       undefined should pass through arguments to groupCollapsed
>       undefined should pass through arguments to groupEnd
>       undefined should pass through arguments to info
>       undefined should pass through arguments to log
>       undefined should pass through arguments to table
>       undefined should pass through arguments to time
>       undefined should pass through arguments to timeLog
>       undefined should pass through arguments to timeEnd
>       undefined should pass through arguments to trace
>       undefined should pass through arguments to warn
>     proxying console methods when using sendTo()
>       undefined should pass through arguments to assert
>       undefined should pass through arguments to clear
>       undefined should pass through arguments to count
>       undefined should pass through arguments to countReset
>       undefined should pass through arguments to debug
>       undefined should pass through arguments to dir
>       undefined should pass through arguments to dirxml
>       undefined should pass through arguments to error
>       undefined should pass through arguments to group
>       undefined should pass through arguments to groupCollapsed
>       undefined should pass through arguments to groupEnd
>       undefined should pass through arguments to info
>       undefined should pass through arguments to log
>       undefined should pass through arguments to table
>       undefined should pass through arguments to time
>       undefined should pass through arguments to timeLog
>       undefined should pass through arguments to timeEnd
>       undefined should pass through arguments to trace
>       undefined should pass through arguments to warn
>       undefined should return the instance it was called on
>       undefined should forward "jsdomError"s to the error method by default
>       undefined should not forward "jsdomError"s to the error method when asked not to
> 
> 
>   417 passing (6s)
>   1 failing
> 
>   1) Test cases only possible to test from the outside
>        frees up callback handles passed to setTimeout:
> 
>       AssertionError: expected 16 to be below 5
>       + expected - actual
> 
>       -16
>       +5
>       
>       at /<<PKGBUILDDIR>>/test/api/from-outside.js:53:12
>       at $mochaNoSugar$runUserTestFunc (debian/tests/test_modules/mocha-sugar-free/lib/mocha-sugar-free.js:64:35)
>       at Context.$mochaNoSugar (debian/tests/test_modules/mocha-sugar-free/lib/mocha-sugar-free.js:267:32)
>       at callFn (/usr/share/nodejs/mocha/lib/runnable.js:366:21)
>       at Test.Runnable.run (/usr/share/nodejs/mocha/lib/runnable.js:354:5)
>       at Runner.runTest (/usr/share/nodejs/mocha/lib/runner.js:678:10)
>       at /usr/share/nodejs/mocha/lib/runner.js:801:12
>       at next (/usr/share/nodejs/mocha/lib/runner.js:593:14)
>       at /usr/share/nodejs/mocha/lib/runner.js:603:7
>       at next (/usr/share/nodejs/mocha/lib/runner.js:486:14)
>       at Immediate._onImmediate (/usr/share/nodejs/mocha/lib/runner.js:571:5)
>       at processImmediate (node:internal/timers:466:21)
> 
> 
> 
> dh_auto_test: error: /bin/sh -ex debian/tests/pkg-js/test returned exit code 1


The full build log is available from:
http://qa-logs.debian.net/2022/05/25/node-jsdom_19.0.0+~cs153.23.47-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220525;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220525&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the Pkg-javascript-devel mailing list