Граф коммитов

572 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić 74a873ad02 Fix worker config 2018-09-03 22:20:53 +02:00
Mislav Marohnić 4f4de0564b Avoid running Chromium in CI
It seems like it's outdated:
https://travis-ci.org/github/fetch/builds/424048996
2018-09-03 22:16:03 +02:00
Mislav Marohnić 66768e0aae Bring back `--no-sandbox` for Travis CI compatibility 2018-09-03 21:04:14 +02:00
Mislav Marohnić f0ebccf7fe Prefer headless testing 2018-09-03 20:48:03 +02:00
Mislav Marohnić e59da3c703 Remove unnecessary test assertions
This was only useful while debugging cache issues.
2018-09-03 19:52:42 +02:00
Mislav Marohnić f1657b086f Use karma-detect-browsers to make things simpler 2018-09-03 19:02:24 +02:00
Mislav Marohnić 7d6198aec7 Skip test for `credentials` default on Safari
In Safari 11.1.2, the default for `credentials` is still "omit".
2018-09-03 18:27:23 +02:00
Mislav Marohnić 3a8e6e44e3 Automatically test with Safari on macOS 2018-09-03 18:08:26 +02:00
Mislav Marohnić 9ed40a3da7 Update Karma to latest version 2018-09-03 18:03:48 +02:00
Mislav Marohnić 36c4931894
Merge pull request #649 from github/contributor-covenant
Adopt Contributor Covenant Code of Conduct
2018-09-01 12:25:57 +02:00
Mislav Marohnić bcef558623
Fix code of conduct contact email 2018-09-01 12:25:34 +02:00
Mislav Marohnić bc43577409 Adopt Contributor Covenant Code of Conduct
The Open Code of Conduct has been defunct for a while.
2018-08-31 19:46:02 +02:00
Mislav Marohnić 0486267221
Merge pull request #640 from github/credentials-default
Change `credentials` default value to `same-origin`
2018-07-25 23:37:47 +02:00
Mislav Marohnić 51faeaa24e Note the changing `credentials` default in Caveats 2018-07-25 23:37:08 +02:00
Mislav Marohnić 507c129f68 Point out that the default for `credentials` has changed 2018-07-25 23:31:59 +02:00
Mislav Marohnić 4c5f227753 Change `credentials` default value: `omit` → `same-origin`
https://github.com/whatwg/fetch/pull/585
2018-07-25 15:37:27 +02:00
Mislav Marohnić 4cc3b9180e
Clarify that all modern browsers now implement fetch natively 2018-07-25 15:03:50 +02:00
Mislav Marohnić 141665b147
Merge pull request #626 from github/karma
Switch test suite from PhantomJS to Karma
2018-05-25 18:38:59 +02:00
Mislav Marohnić b891c46764 Install newer Firefox in hopes to avoid intermittent CI failures
https://travis-ci.org/github/fetch/builds/383771737
https://travis-ci.org/github/fetch/builds/383770926
https://travis-ci.org/github/fetch/builds/383767274
https://travis-ci.org/github/fetch/builds/383767224
2018-05-25 18:06:36 +02:00
Mislav Marohnić 0ee11fa3cf Avoid Node 6 deprecation warnings re: Buffer
https://nodejs.org/api/buffer.html#buffer_buffer_from_buffer_alloc_and_buffer_allocunsafe
2018-05-25 17:59:10 +02:00
Mislav Marohnić 9f2854bb08 Rename `prepublish` step to `prepare` 2018-05-25 17:50:49 +02:00
Mislav Marohnić b2bc05b346 Remove xvfb since it's no longer necessary in CI
I was just cargo-culting it from other setups
2018-05-25 17:49:10 +02:00
Mislav Marohnić 418b8ee260 Enable AbortController polyfill in web worker mode
This should help Firefox 56 in CI which doesn't have AbortController.
2018-05-25 00:47:18 +02:00
Mislav Marohnić 8827a22413 Tweak bullet styles 2018-05-24 04:13:01 +02:00
Mislav Marohnić 89c80f83ab Remove docs that are of little to no use
[ci skip]
2018-05-24 04:10:38 +02:00
Mislav Marohnić 4a1e106a08 Improve CONTRIBUTING documentation 2018-05-24 04:10:10 +02:00
Mislav Marohnić 8be5431591 Configure eslint for node 2018-05-24 03:41:10 +02:00
Mislav Marohnić 36c5203bbd Have test output in CI be less noisy 2018-05-24 03:40:29 +02:00
Mislav Marohnić 5826cfc5fa Skip iterable tests broken in Firefox <= 56 2018-05-24 03:35:14 +02:00
Mislav Marohnić 48f70e20ed Add `npm run karma` for easier testing 2018-05-24 03:02:51 +02:00
Mislav Marohnić 621b80de2c Skip `response.formData()` test in native Safari/Edge
Just like in Chrome, this isn't supported natively.
2018-05-24 03:02:51 +02:00
Mislav Marohnić 47d9084e69 Skip testing functionality that doesn't seem implemented in IE/Edge 2018-05-24 03:02:51 +02:00
Mislav Marohnić 711ab2faac Fix abortable tests in Safari
Safari aggressively caches `/slow` endpoint after first load and serves
it up really fast on subsequent runs, not giving it enough time to
invoke `controller.abort()`.

Adding `Cache-Control` response headers from the server doesn't work.
Safari still serves `/slow` from disk cache, even though `/slow` was
never even allowed to finish on prior runs. My guess is that Safari
erroneously caches the result of `/slow` when the initial request was
aborted.
2018-05-24 03:02:51 +02:00
Mislav Marohnić 837cac40b2 Only test native abortable functionality in browsers that implement it 2018-05-24 02:51:07 +02:00
Mislav Marohnić 3f420d57bd Remove PhantomJS artifacts from tests 2018-05-24 02:51:07 +02:00
Mislav Marohnić f75e24bf62 Load polyfills for testing older browsers 2018-05-24 02:51:07 +02:00
Mislav Marohnić b7ea5f2c38 Remove test that depends on specific abortcontroller-polyfill API
`signal.listeners` is not available in native implementations of AbortSignal.
2018-05-24 02:51:07 +02:00
Mislav Marohnić fd151e986a Split header values with `, ` to match other browsers
Chrome and Firefox both split `append`d values with `, `.
2018-05-24 02:51:07 +02:00
Mislav Marohnić a55b7d71ce Nuke old testing setup 2018-05-24 02:51:07 +02:00
Mislav Marohnić 4f097017ca Convert testing fetch under Web Workers to Karma 2018-05-24 02:51:07 +02:00
Mislav Marohnić b539589046 Switch from PhantomJS to Karma + Chrome/Firefox for testing 2018-05-24 00:12:26 +02:00
Mislav Marohnić da07fa1dde
Merge pull request #592 from jamesplease/abort-polyfill
Support abort API
2018-05-23 16:17:24 +02:00
Mislav Marohnić c873843dc8 Polish documentation for aborting requests 2018-05-23 16:15:48 +02:00
Mislav Marohnić 2bd7f22032 Export DOMException for `instanceof` checks 2018-05-23 16:04:31 +02:00
Mislav Marohnić f03586047c Scope abortcontroller to polyfill only 2018-05-23 15:56:17 +02:00
Mislav Marohnić c31fca91bb Merge remote-tracking branch 'origin/master' into abort-polyfill 2018-05-23 15:53:28 +02:00
Mislav Marohnić f83e37133e
Merge pull request #616 from jayphelps/umd
build/distribute as UMD
2018-05-23 15:39:59 +02:00
Mislav Marohnić 7d8326bd97 Try testing with a newer Node version 2018-05-17 16:30:15 +02:00
Mislav Marohnić 9595e3e357 Merge remote-tracking branch 'origin/master' into umd 2018-05-17 16:26:00 +02:00
Mislav Marohnić f6d8b4d513 Use new exports to clean up test suite preparation
Prior to this change, `test.js` had to be loaded before `fetch.js` so it
can nulify the native implementation of `window.fetch` to force testing
of the polyfill. Now that we have exports from the UMD file, we can
abandon this hack and simply access the exports to juggle between native
and polyfilled versions of the implementation.
2018-05-17 16:22:26 +02:00