Skip to content
Permalink
Browse files

Update web-platform-tests to revision 7f2f85a88f434798e9d643427b34b05…

…fab8278c6
  • Loading branch information
Ms2ger committed Feb 1, 2016
1 parent 6b1a08c commit 73bc5cf1b80992a2920c169dcdd66f06e2386adf
Showing with 5,807 additions and 169 deletions.
  1. +411 −31 tests/wpt/metadata/MANIFEST.json
  2. +98 −0 tests/wpt/metadata/html/semantics/embedded-content/the-area-element/area-coords.html.ini
  3. +44 −0 tests/wpt/metadata/html/semantics/embedded-content/the-area-element/area-processing.html.ini
  4. +47 −0 tests/wpt/metadata/html/semantics/embedded-content/the-area-element/area-shape.html.ini
  5. +5 −0 tests/wpt/metadata/html/semantics/embedded-content/the-embed-element/embed-document.html.ini
  6. +1 −1 tests/wpt/metadata/mozilla-sync
  7. +6 −0 tests/wpt/metadata/url/url-constructor.html.ini
  8. +1 −1 tests/wpt/web-platform-tests/XMLHttpRequest/formdata-blob.htm
  9. +3 −0 tests/wpt/web-platform-tests/battery-status/OWNERS
  10. +97 −0 tests/wpt/web-platform-tests/cssom-view/scrollingElement.html
  11. +10 −0 tests/wpt/web-platform-tests/dom/nodes/DOMImplementation-createDocument.html
  12. +16 −0 tests/wpt/web-platform-tests/fetch/api/basic/accept-header-worker.html
  13. +15 −0 tests/wpt/web-platform-tests/fetch/api/basic/accept-header.html
  14. +14 −0 tests/wpt/web-platform-tests/fetch/api/basic/accept-header.js
  15. +16 −0 tests/wpt/web-platform-tests/fetch/api/basic/integrity-worker.html
  16. +15 −0 tests/wpt/web-platform-tests/fetch/api/basic/integrity.html
  17. +45 −0 tests/wpt/web-platform-tests/fetch/api/basic/integrity.js
  18. +17 −0 tests/wpt/web-platform-tests/fetch/api/basic/mode-no-cors-worker.html
  19. +16 −0 tests/wpt/web-platform-tests/fetch/api/basic/mode-no-cors.html
  20. +31 −0 tests/wpt/web-platform-tests/fetch/api/basic/mode-no-cors.js
  21. +17 −0 tests/wpt/web-platform-tests/fetch/api/basic/mode-same-origin-worker.html
  22. +16 −0 tests/wpt/web-platform-tests/fetch/api/basic/mode-same-origin.html
  23. +24 −0 tests/wpt/web-platform-tests/fetch/api/basic/mode-same-origin.js
  24. +17 −0 tests/wpt/web-platform-tests/fetch/api/basic/request-forbidden-headers-worker.html
  25. +16 −0 tests/wpt/web-platform-tests/fetch/api/basic/request-forbidden-headers.html
  26. +48 −0 tests/wpt/web-platform-tests/fetch/api/basic/request-forbidden-headers.js
  27. +16 −0 tests/wpt/web-platform-tests/fetch/api/basic/request-headers-worker.html
  28. +15 −0 tests/wpt/web-platform-tests/fetch/api/basic/request-headers.html
  29. +35 −0 tests/wpt/web-platform-tests/fetch/api/basic/request-headers.js
  30. +17 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-about-worker.html
  31. +16 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-about.html
  32. +40 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-about.js
  33. +17 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-blob-worker.html
  34. +16 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-blob.html
  35. +41 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-blob.js
  36. +17 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-data-worker.html
  37. +16 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-data.html
  38. +39 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-data.js
  39. +17 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-others-worker.html
  40. +16 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-others.html
  41. +33 −0 tests/wpt/web-platform-tests/fetch/api/basic/scheme-others.js
  42. +17 −0 tests/wpt/web-platform-tests/fetch/api/basic/stream-response-worker.html
  43. +16 −0 tests/wpt/web-platform-tests/fetch/api/basic/stream-response.html
  44. +37 −0 tests/wpt/web-platform-tests/fetch/api/basic/stream-response.js
  45. +19 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-basic-worker.html
  46. +18 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-basic.html
  47. +45 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-basic.js
  48. +18 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-cookies-worker.html
  49. +17 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-cookies.html
  50. +58 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-cookies.js
  51. +18 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering-worker.html
  52. +17 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering.html
  53. +66 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-filtering.js
  54. +19 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins-worker.html
  55. +18 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins.html
  56. +32 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-multiple-origins.js
  57. +20 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-no-preflight-worker.html
  58. +20 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-no-preflight.html
  59. +50 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-no-preflight.js
  60. +19 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-origin-worker.html
  61. +19 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-origin.html
  62. +61 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-origin.js
  63. +18 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight-redirect-worker.html
  64. +18 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight-redirect.html
  65. +40 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight-redirect.js
  66. +18 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight-referrer-worker.html
  67. +18 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight-referrer.html
  68. +39 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight-referrer.js
  69. +18 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight-status-worker.html
  70. +17 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight-status.html
  71. +41 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight-status.js
  72. +20 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight-worker.html
  73. +20 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight.html
  74. +82 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-preflight.js
  75. +16 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-redirect-credentials-worker.html
  76. +15 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-redirect-credentials.html
  77. +47 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-redirect-credentials.js
  78. +17 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-redirect-worker.html
  79. +17 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-redirect.html
  80. +44 −0 tests/wpt/web-platform-tests/fetch/api/cors/cors-redirect.js
  81. +16 −0 tests/wpt/web-platform-tests/fetch/api/credentials/authentication-basic-worker.html
  82. +15 −0 tests/wpt/web-platform-tests/fetch/api/credentials/authentication-basic.html
  83. +21 −0 tests/wpt/web-platform-tests/fetch/api/credentials/authentication-basic.js
  84. +18 −0 tests/wpt/web-platform-tests/fetch/api/credentials/cookies-worker.html
  85. +17 −0 tests/wpt/web-platform-tests/fetch/api/credentials/cookies.html
  86. +51 −0 tests/wpt/web-platform-tests/fetch/api/credentials/cookies.js
  87. +111 −0 tests/wpt/web-platform-tests/fetch/api/headers/headers-basic.html
  88. +64 −0 tests/wpt/web-platform-tests/fetch/api/headers/headers-casing.html
  89. +60 −0 tests/wpt/web-platform-tests/fetch/api/headers/headers-combine.html
  90. +66 −0 tests/wpt/web-platform-tests/fetch/api/headers/headers-errors.html
  91. +36 −0 tests/wpt/web-platform-tests/fetch/api/headers/headers-idl.html
  92. +47 −0 tests/wpt/web-platform-tests/fetch/api/headers/headers-normalize.html
  93. +31 −0 tests/wpt/web-platform-tests/fetch/api/headers/headers-structure.html
  94. +16 −0 tests/wpt/web-platform-tests/fetch/api/policies/csp-blocked-worker.html
  95. +15 −0 tests/wpt/web-platform-tests/fetch/api/policies/csp-blocked.html
  96. +1 −0 tests/wpt/web-platform-tests/fetch/api/policies/csp-blocked.html.headers
  97. +13 −0 tests/wpt/web-platform-tests/fetch/api/policies/csp-blocked.js
  98. +1 −0 tests/wpt/web-platform-tests/fetch/api/policies/csp-blocked.js.headers
  99. +17 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-no-referrer-worker.html
  100. +15 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-no-referrer.html
  101. +1 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-no-referrer.html.headers
  102. +19 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-no-referrer.js
  103. +1 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-no-referrer.js.headers
  104. +17 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-origin-worker.html
  105. +16 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-origin.html
  106. +1 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-origin.html.headers
  107. +22 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-origin.js
  108. +1 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-origin.js.headers
  109. +17 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-unsafe-url-worker.html
  110. +16 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-unsafe-url.html
  111. +1 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-unsafe-url.html.headers
  112. +17 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-unsafe-url.js
  113. +1 −0 tests/wpt/web-platform-tests/fetch/api/policies/referrer-unsafe-url.js.headers
  114. +16 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count-worker.html
  115. +16 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count.html
  116. +42 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-count.js
  117. +16 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location-worker.html
  118. +15 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.html
  119. +50 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-location.js
  120. +16 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method-worker.html
  121. +15 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method.html
  122. +46 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-method.js
  123. +17 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode-worker.html
  124. +16 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode.html
  125. +40 −0 tests/wpt/web-platform-tests/fetch/api/redirect/redirect-mode.js
  126. +48 −0 tests/wpt/web-platform-tests/fetch/api/request/request-clone.sub.html
  127. +89 −0 tests/wpt/web-platform-tests/fetch/api/request/request-consume.html
  128. +55 −0 tests/wpt/web-platform-tests/fetch/api/request/request-disturbed.html
  129. +104 −0 tests/wpt/web-platform-tests/fetch/api/request/request-error.html
  130. +85 −0 tests/wpt/web-platform-tests/fetch/api/request/request-idl.html
  131. +92 −0 tests/wpt/web-platform-tests/fetch/api/request/request-init-001.sub.html
  132. +62 −0 tests/wpt/web-platform-tests/fetch/api/request/request-init-002.html
  133. +84 −0 tests/wpt/web-platform-tests/fetch/api/request/request-init-003.sub.html
  134. +132 −0 tests/wpt/web-platform-tests/fetch/api/request/request-structure.html
  135. +15 −0 tests/wpt/web-platform-tests/fetch/api/resources/authentication.py
  136. +6 −0 tests/wpt/web-platform-tests/fetch/api/resources/clean-stash.py
  137. +22 −0 tests/wpt/web-platform-tests/fetch/api/resources/inspect-headers.py
  138. +11 −0 tests/wpt/web-platform-tests/fetch/api/resources/method.py
  139. +56 −0 tests/wpt/web-platform-tests/fetch/api/resources/preflight.py
  140. +48 −0 tests/wpt/web-platform-tests/fetch/api/resources/redirect.py
  141. +1 −0 tests/wpt/web-platform-tests/fetch/api/resources/top.txt
  142. +12 −0 tests/wpt/web-platform-tests/fetch/api/resources/trickle.py
  143. +68 −0 tests/wpt/web-platform-tests/fetch/api/resources/utils.js
  144. +66 −0 tests/wpt/web-platform-tests/fetch/api/response/response-clone.html
  145. +81 −0 tests/wpt/web-platform-tests/fetch/api/response/response-consume.html
  146. +39 −0 tests/wpt/web-platform-tests/fetch/api/response/response-error.html
  147. +69 −0 tests/wpt/web-platform-tests/fetch/api/response/response-idl.html
  148. +63 −0 tests/wpt/web-platform-tests/fetch/api/response/response-init-001.html
  149. +62 −0 tests/wpt/web-platform-tests/fetch/api/response/response-init-002.html
  150. +25 −0 tests/wpt/web-platform-tests/fetch/api/response/response-static-error.html
  151. +45 −0 tests/wpt/web-platform-tests/fetch/api/response/response-static-redirect.html
  152. +7 −0 tests/wpt/web-platform-tests/html/OWNERS
  153. +47 −0 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-area-element/area-coords.html
  154. +32 −0 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-area-element/area-processing.html
  155. +33 −0 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-area-element/area-shape.html
  156. +0 −18 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-area-element/area_nohref.xhtml
  157. +42 −0 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-area-element/support/hit-test.js
  158. +0 −9 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-area-element/test-area.xhtml
  159. +15 −0 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-embed-element/embed-document.html
  160. +7 −0 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-embed-element/embed-iframe.html
  161. +31 −5 tests/wpt/web-platform-tests/html/semantics/forms/the-input-element/checkbox.html
  162. +3 −3 tests/wpt/web-platform-tests/navigation-timing/test_navigation_type_reload.html
  163. +1 −1 tests/wpt/web-platform-tests/notifications/interfaces.html
  164. +5 −7 tests/wpt/web-platform-tests/old-tests/submission/Microsoft/sandbox/iframe_sandbox_002.htm
  165. +8 −17 tests/wpt/web-platform-tests/old-tests/submission/Microsoft/sandbox/sandbox_002.htm
  166. +1 −1 tests/wpt/web-platform-tests/selectors/attribute-selectors/attribute-case/syntax.html
  167. +404 −0 tests/wpt/web-platform-tests/shadow-dom/styles/shadow-cascade-order.html
  168. +0 −7 tests/wpt/web-platform-tests/svg/interfaces.html
  169. +4 −4 tests/wpt/web-platform-tests/url/urltestdata.json
  170. +1 −1 tests/wpt/web-platform-tests/user-timing/test_user_timing_mark.html
  171. +2 −2 tests/wpt/web-platform-tests/user-timing/test_user_timing_measure.html
  172. +2 −2 tests/wpt/web-platform-tests/user-timing/test_user_timing_measure_navigation_timing.html
  173. +126 −0 tests/wpt/web-platform-tests/web-animations/animatable/animate.html
  174. +1 −1 tests/wpt/web-platform-tests/web-animations/testcommon.js
  175. +1 −0 tests/wpt/web-platform-tests/webgl/OWNERS
  176. +4 −0 tests/wpt/web-platform-tests/webvtt/OWNERS
  177. +0 −26 tests/wpt/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/001.html
  178. +7 −0 tests/wpt/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/001.worker.js
  179. +0 −32 tests/wpt/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/002.html
  180. +11 −0 tests/wpt/web-platform-tests/workers/interfaces/WorkerUtils/importScripts/002.worker.js

Large diffs are not rendered by default.

@@ -0,0 +1,98 @@
[area-coords.html]
type: testharness
[COMMA: "2,2,10,10" (rect)]
expected: FAIL

[SEMICOLON: "2;2;10;10" (rect)]
expected: FAIL

[SPACE: "2 2 10 10" (rect)]
expected: FAIL

[TAB: "2\\t2\\t10\\t10" (rect)]
expected: FAIL

[FORM FEED: "2\\f2\\f10\\f10" (rect)]
expected: FAIL

[LINE FEED: "2\\n2\\n10\\n10" (rect)]
expected: FAIL

[CARRIGAGE RETURN: "2\\r2\\r10\\r10" (rect)]
expected: FAIL

[LINE TABULATION: "2\\v2\\v10\\v10" (rect)]
expected: FAIL

[LINE NEXT: "2…2…10…10" (rect)]
expected: FAIL

[EN QUAD: "2 2 10 10" (rect)]
expected: FAIL

[abc between numbers: "2a2b20c20,2,10,10" (rect)]
expected: FAIL

[COLON between numbers: "2:2:20:20,2,10,10" (rect)]
expected: FAIL

[U+0000 between numbers: "2\\02\\020\\020,2,10,10" (rect)]
expected: FAIL

[leading COMMA: ",2,2,10,10" (rect)]
expected: FAIL

[leading SPACE: " 2,2,10,10" (rect)]
expected: FAIL

[leading SEMICOLON: ";2,2,10,10" (rect)]
expected: FAIL

[trailing COMMA: "2,2,10," (rect)]
expected: FAIL

[trailing SPACE: "2,2,10 " (rect)]
expected: FAIL

[trailing SEMICOLON: "2,2,10;" (rect)]
expected: FAIL

[PERCENT: "2%,2%,10%,10%" (rect)]
expected: FAIL

[CSS units: "2in,2in,10cm,10cm" (rect)]
expected: FAIL

[float: "1.4,1.4,10,10" (rect)]
expected: FAIL

[number starting with PERIOD: ".4,.4,10,10" (rect)]
expected: FAIL

[sci-not: "2,2,1e1,1e1" (rect)]
expected: FAIL

[leading/trailing garbage: "='2,2,10,10' " (rect)]
expected: FAIL

[non-ascii garbage: "“2,2,10,10\\"" (rect)]
expected: FAIL
[URL garbage with number: "2,2,10ls/spain/holidays/regions/10/Canary+Islands/Canary+Islands.html" (rect)]
expected: FAIL
[consecutive COMMAs: "2,,10,10" (rect)]
expected: FAIL
[consecutive SPACEs: "2 10,10" (rect)]
expected: FAIL
[consecutive SEMICOLONs: "2;;10,10" (rect)]
expected: FAIL

[several consecutive separators: ",,2;,;2,;,10 \\t\\r\\n10;;" (rect)]
expected: FAIL

[one too many numbers, trailing COMMA: "100,100,120,100,100,120,300," (poly)]
expected: FAIL

@@ -0,0 +1,44 @@
[area-processing.html]
type: testharness
[too few numbers: "2,2,10" (rect)]
expected: FAIL

[negative: "-10,-10,10,10" (rect)]
expected: FAIL

[empty string: "" (rect)]
expected: FAIL

[omitted coords: null (rect)]
expected: FAIL

[first > third: "10,2,2,10" (rect)]
expected: FAIL

[second > fourth: "2,10,10,2" (rect)]
expected: FAIL

[first > third, second > fourth: "10,10,2,2" (rect)]
expected: FAIL

[negative: "-10,-10,-10,-10" (default)]
expected: FAIL

[too few numbers: "20,40" (circle)]
expected: FAIL

[negative radius: "20,40,-10" (circle)]
expected: FAIL

[zero radius: "20,40,0" (circle)]
expected: FAIL

[too few numbers: "100,100,120,100,100" (poly)]
expected: FAIL

[one too many numbers: "100,100,120,100,100,120,300" (poly)]
expected: FAIL

[even-odd rule: "100,100,200,100,100,200,150,50,200,200" (poly)]
expected: FAIL

@@ -0,0 +1,47 @@
[area-shape.html]
type: testharness
[missing value default: "2,2,10,10" (null)]
expected: FAIL

[missing value default: "20,40,10" (null)]
expected: FAIL

[missing value default: null (null)]
expected: FAIL

[invalid value default: "2,2,10,10" (foobar invalid)]
expected: FAIL

[invalid value default: "2,2,10,10" ()]
expected: FAIL

[empty string: "" (default)]
expected: FAIL

[omitted coords: null (DEFAULT)]
expected: FAIL

[simple: "20,40,10" (circle)]
expected: FAIL

[simple: "20,40,10" (circ)]
expected: FAIL

[simple: "20,40,10" (CIRCLE)]
expected: FAIL

[simple: "20,40,10" (CIRC)]
expected: FAIL

[LATIN CAPITAL LETTER I WITH DOT ABOVE: "20,40,10" (CİRCLE)]
expected: FAIL

[LATIN SMALL LETTER DOTLESS I: "20,40,10" (cırcle)]
expected: FAIL

[simple: "100,100,120,100,100,120" (poly)]
expected: FAIL

[simple: "100,100,120,100,100,120" (polygon)]
expected: FAIL

@@ -0,0 +1,5 @@
[embed-document.html]
type: testharness
[Test document type embedding]
expected: FAIL

@@ -1 +1 @@
8a1d0a8f3e4206c98f35a4bba98fc26237c1f906
6b1a08c051f3be4b7bc7e6200053dfa530ecd106
@@ -198,3 +198,9 @@
[Parsing: <file:a> against <http://www.example.com/test>]
expected: FAIL

[Parsing: <http://example.com/foo/%2e%2> against <about:blank>]
expected: FAIL

[Parsing: <http://example.com/foo/%2e./%2e%2e/.%2e/%2e.bar> against <about:blank>]
expected: FAIL

@@ -33,7 +33,7 @@
return fd;
}

do_test("formdata with blob", create_formdata(['key', new Blob(['value'], {type: 'text/x-value'})]), '\nkey=blob:text/x-value:5,');
do_test("formdata with blob", create_formdata(['key', new Blob(['value'], {type: 'text/x-value'})]), 'key=value,\n');
do_test("formdata with named blob", create_formdata(['key', new Blob(['value'], {type: 'text/x-value'}), 'blob.txt']), '\nkey=blob.txt:text/x-value:5,');
// If 3rd argument is given and 2nd is not a Blob, formdata.append() should throw
var test = async_test('formdata.append() should throw if value is string and file name is given'); // needs to be async just because the others above are
@@ -0,0 +1,3 @@
@anssiko
@dontcallmedom
@zqzhang
@@ -0,0 +1,97 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>cssom-view - scrollingElement</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<iframe id="quirksframe"></iframe>
<iframe id="nonquirksframe"></iframe>
<div id="log"></div>
<script>

var quirksFrame;
var nonQuirksFrame;

function loadTestFrames(callback) {
quirksFrame = document.getElementById("quirksframe");
quirksFrame.onload = function() {
nonQuirksFrame = document.getElementById("nonquirksframe");
nonQuirksFrame.onload = callback;
nonQuirksFrame.src =
URL.createObjectURL(new Blob(["<!doctype html>"], { type: "text/html" }));
}
quirksFrame.src =
URL.createObjectURL(new Blob([""], { type: "text/html" }));
}

var test = async_test("Tests for scrollingElement");
loadTestFrames(function() {
test.step(function() {
var quirksDoc = quirksFrame.contentDocument;
var nonQuirksDoc = nonQuirksFrame.contentDocument;

// Initial checks that we have the expected kinds of documents.
assert_equals(quirksDoc.compatMode, "BackCompat", "Should be in quirks mode.");
assert_equals(nonQuirksDoc.compatMode, "CSS1Compat", "Should be in standards mode.");

assert_not_equals(quirksDoc.body, null, "Should have a body element");
assert_not_equals(nonQuirksDoc.body, null, "Should have a body element");

// Tests for quirks mode document.
assert_equals(quirksDoc.scrollingElement, quirksDoc.body,
"scrollingElement in quirks mode should default to body element.");

quirksDoc.documentElement.style.overflow = "scroll";
quirksDoc.body.style.overflow = "scroll";
assert_equals(quirksDoc.scrollingElement, null,
"scrollingElement in quirks mode should be null if overflow of body and root element isn't visible.");
quirksDoc.documentElement.style.overflow = "visible";
assert_equals(quirksDoc.scrollingElement, quirksDoc.body);
quirksDoc.documentElement.style.overflow = "scroll";
quirksDoc.body.style.overflow = "visible";
assert_equals(quirksDoc.scrollingElement, quirksDoc.body);
quirksDoc.documentElement.style.overflow = "visible";
assert_equals(quirksDoc.scrollingElement, quirksDoc.body);

quirksDoc.body.style.display = "none";
assert_equals(quirksDoc.scrollingElement, quirksDoc.body)
quirksDoc.body.style.display = "block";
assert_equals(quirksDoc.scrollingElement, quirksDoc.body);

quirksDoc.documentElement.appendChild(quirksDoc.createElement("body"));
assert_equals(quirksDoc.scrollingElement, quirksDoc.body);
assert_equals(quirksDoc.scrollingElement, quirksDoc.getElementsByTagName("body")[0]);
quirksDoc.documentElement.removeChild(quirksDoc.documentElement.lastChild);
assert_equals(quirksDoc.scrollingElement, quirksDoc.body);

quirksDoc.documentElement.removeChild(quirksDoc.body);
assert_equals(quirksDoc.scrollingElement, null);
quirksDoc.documentElement.appendChild(quirksDoc.createElementNS("foobarNS", "body"));
assert_equals(quirksDoc.scrollingElement, null);

quirksDoc.removeChild(quirksDoc.documentElement);
assert_equals(quirksDoc.scrollingElement, null);

quirksDoc.appendChild(quirksDoc.createElementNS("foobarNS", "html"));
quirksDoc.documentElement.appendChild(quirksDoc.createElement("body"));
assert_equals(quirksDoc.scrollingElement, null);

quirksDoc.removeChild(quirksDoc.documentElement);
quirksDoc.appendChild(quirksDoc.createElement("body"));
assert_equals(quirksDoc.scrollingElement, null);

// Tests for standards mode document.
assert_equals(nonQuirksDoc.scrollingElement, nonQuirksDoc.documentElement,
"scrollingElement in standards mode should be the document element.");
nonQuirksDoc.documentElement.style.overflow = "scroll";
nonQuirksDoc.body.style.overflow = "scroll";
assert_equals(nonQuirksDoc.scrollingElement, nonQuirksDoc.documentElement);

nonQuirksDoc.removeChild(nonQuirksDoc.documentElement);
assert_equals(nonQuirksDoc.scrollingElement, null);
nonQuirksDoc.appendChild(nonQuirksDoc.createElement("foobar"));
assert_equals(nonQuirksDoc.scrollingElement.localName, "foobar");

});
test.done();
});
</script>
@@ -120,4 +120,14 @@
}
})
})

test(function() {
assert_throws(new TypeError(), function() {
document.implementation.createDocument()
}, "createDocument() should throw")

assert_throws(new TypeError(), function() {
document.implementation.createDocument('')
}, "createDocument('') should throw")
}, "createDocument with missing arguments");
</script>
@@ -0,0 +1,16 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Fetch in worker: accept header</title>
<meta name="help" href="https://fetch.spec.whatwg.org/#fetching">
<meta name="author" title="Canon Research France" href="https://www.crf.canon.fr">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
fetch_tests_from_worker(new Worker("accept-header.js"));
</script>
</body>
</html>
@@ -0,0 +1,15 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Fetch: accept header</title>
<meta name="help" href="https://fetch.spec.whatwg.org/#fetching">
<meta name="author" title="Canon Research France" href="https://www.crf.canon.fr">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script src="../resources/utils.js"></script>
<script src="accept-header.js"></script>
</body>
</html>
@@ -0,0 +1,14 @@
if (this.document === undefined) {
importScripts("/resources/testharness.js");
importScripts("../resources/utils.js");
}

promise_test(function() {
return fetch(RESOURCES_DIR + "inspect-headers.py?headers=Accept").then(function(response) {
assert_equals(response.status, 200, "HTTP status is 200");
assert_equals(response.type , "basic", "Response's type is basic");
assert_equals(response.headers.get("x-request-accept"), "*/*", "Request has accept header with value '*/*'");
});
}, "Request through fetch should have 'accept' header with value '*/*'");

done();

0 comments on commit 73bc5cf

Please sign in to comment.
You can’t perform that action at this time.