| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4be373b commit 0197ba0
20 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -263,11 +263,12 @@ Some of the tests for the WHATWG URL implementation (named | |||
| 263 | 263 | These imported tests will be wrapped like this: | |
| 264 | 264 | ||
| 265 | 265 | ```js | |
| 266 | - /* eslint-disable */ | ||
| 267 | - /* WPT Refs: | ||
| 266 | + /* The following tests are copied from WPT. Modifications to them should be | ||
| 267 | + upstreamed first. Refs: | ||
| 268 | 268 | https://github.com/w3c/web-platform-tests/blob/8791bed/url/urlsearchparams-stringifier.html | |
| 269 | 269 | License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html | |
| 270 | 270 | */ | |
| 271 | + /* eslint-disable */ | ||
| 271 | 272 | ||
| 272 | 273 | // Test code | |
| 273 | 274 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - /* WPT Refs: | ||
| 3 | + /* The following tests are copied from WPT. Modifications to them should be | ||
| 4 | + upstreamed first. Refs: | ||
| 4 | 5 | https://github.com/w3c/web-platform-tests/blob/b30abaecf4/url/setters_tests.json | |
| 5 | 6 | License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html | |
| 6 | 7 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - /* WPT Refs: | ||
| 3 | + /* The following tests are copied from WPT. Modifications to them should be | ||
| 4 | + upstreamed first. Refs: | ||
| 4 | 5 | https://github.com/w3c/web-platform-tests/blob/8df7c9c215/url/urltestdata.json | |
| 5 | 6 | License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html | |
| 6 | 7 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | 2 | ||
| 3 | - /* WPT Refs: | ||
| 3 | + /* The following tests are copied from WPT. Modifications to them should be | ||
| 4 | + upstreamed first. Refs: | ||
| 4 | 5 | https://github.com/w3c/web-platform-tests/blob/4839a0a804/url/toascii.json | |
| 5 | 6 | License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html | |
| 6 | 7 | */ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,11 +14,12 @@ const request = { | |||
| 14 | 14 | response: require(path.join(common.fixturesDir, 'url-tests')) | |
| 15 | 15 | }; | |
| 16 | 16 | ||
| 17 | - /* eslint-disable */ | ||
| 18 | - /* WPT Refs: | ||
| 17 | + /* The following tests are copied from WPT. Modifications to them should be | ||
| 18 | + upstreamed first. Refs: | ||
| 19 | 19 | https://github.com/w3c/web-platform-tests/blob/8791bed/url/url-constructor.html | |
| 20 | 20 | License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html | |
| 21 | 21 | */ | |
| 22 | + /* eslint-disable */ | ||
| 22 | 23 | function runURLConstructorTests() { | |
| 23 | 24 | // var setup = async_test("Loading data…") | |
| 24 | 25 | // setup.step(function() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,11 +8,12 @@ if (!common.hasIntl) { | |||
| 8 | 8 | const URL = require('url').URL; | |
| 9 | 9 | const { test, assert_equals, assert_throws } = require('../common/wpt'); | |
| 10 | 10 | ||
| 11 | - /* eslint-disable */ | ||
| 12 | - /* WPT Refs: | ||
| 11 | + /* The following tests are copied from WPT. Modifications to them should be | ||
| 12 | + upstreamed first. Refs: | ||
| 13 | 13 | https://github.com/w3c/web-platform-tests/blob/8791bed/url/historical.html | |
| 14 | 14 | License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html | |
| 15 | 15 | */ | |
| 16 | + /* eslint-disable */ | ||
| 16 | 17 | // var objects = [ | |
| 17 | 18 | // [function() { return window.location }, "location object"], | |
| 18 | 19 | // [function() { return document.createElement("a") }, "a element"], | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,11 +13,12 @@ const request = { | |||
| 13 | 13 | response: require(path.join(common.fixturesDir, 'url-tests')) | |
| 14 | 14 | }; | |
| 15 | 15 | ||
| 16 | - /* eslint-disable */ | ||
| 17 | - /* WPT Refs: | ||
| 16 | + /* The following tests are copied from WPT. Modifications to them should be | ||
| 17 | + upstreamed first. Refs: | ||
| 18 | 18 | https://github.com/w3c/web-platform-tests/blob/8791bed/url/url-origin.html | |
| 19 | 19 | License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html | |
| 20 | 20 | */ | |
| 21 | + /* eslint-disable */ | ||
| 21 | 22 | function runURLOriginTests() { | |
| 22 | 23 | // var setup = async_test("Loading data…") | |
| 23 | 24 | // setup.step(function() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,11 +5,12 @@ const assert = require('assert'); | |||
| 5 | 5 | const URLSearchParams = require('url').URLSearchParams; | |
| 6 | 6 | const { test, assert_equals, assert_true } = require('../common/wpt'); | |
| 7 | 7 | ||
| 8 | - /* eslint-disable */ | ||
| 9 | - /* WPT Refs: | ||
| 8 | + /* The following tests are copied from WPT. Modifications to them should be | ||
| 9 | + upstreamed first. Refs: | ||
| 10 | 10 | https://github.com/w3c/web-platform-tests/blob/8791bed/url/urlsearchparams-append.html | |
| 11 | 11 | License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html | |
| 12 | 12 | */ | |
| 13 | + /* eslint-disable */ | ||
| 13 | 14 | test(function() { | |
| 14 | 15 | var params = new URLSearchParams(); | |
| 15 | 16 | params.append('a', 'b'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,12 +8,13 @@ const { | |||
| 8 | 8 | assert_false, assert_throws, assert_array_equals | |
| 9 | 9 | } = require('../common/wpt'); | |
| 10 | 10 | ||
| 11 | - /* eslint-disable */ | ||
| 12 | - var params; // Strict mode fix for WPT. | ||
| 13 | - /* WPT Refs: | ||
| 11 | + /* The following tests are copied from WPT. Modifications to them should be | ||
| 12 | + upstreamed first. Refs: | ||
| 14 | 13 | https://github.com/w3c/web-platform-tests/blob/54c3502d7b/url/urlsearchparams-constructor.html | |
| 15 | 14 | License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html | |
| 16 | 15 | */ | |
| 16 | + /* eslint-disable */ | ||
| 17 | + var params; // Strict mode fix for WPT. | ||
| 17 | 18 | test(function() { | |
| 18 | 19 | var params = new URLSearchParams(); | |
| 19 | 20 | assert_equals(params + '', ''); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,11 +6,12 @@ const { URL, URLSearchParams } = require('url'); | |||
| 6 | 6 | const { test, assert_equals, assert_true, assert_false } = | |
| 7 | 7 | require('../common/wpt'); | |
| 8 | 8 | ||
| 9 | - /* eslint-disable */ | ||
| 10 | - /* WPT Refs: | ||
| 9 | + /* The following tests are copied from WPT. Modifications to them should be | ||
| 10 | + upstreamed first. Refs: | ||
| 11 | 11 | https://github.com/w3c/web-platform-tests/blob/8791bed/url/urlsearchparams-delete.html | |
| 12 | 12 | License: http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright.html | |
| 13 | 13 | */ | |
| 14 | + /* eslint-disable */ | ||
| 14 | 15 | test(function() { | |
| 15 | 16 | var params = new URLSearchParams('a=b&c=d'); | |
| 16 | 17 | params.delete('a'); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments