| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | # The 3-Clause BSD License | |
| 2 | 2 | ||
| 3 | - Copyright 2019 web-platform-tests contributors | ||
| 3 | + Copyright © web-platform-tests contributors | ||
| 4 | 4 | ||
| 5 | 5 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
| 6 | 6 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,7 +10,7 @@ See [test/wpt](../../wpt/README.md) for information on how these tests are run. | |||
| 10 | 10 | ||
| 11 | 11 | Last update: | |
| 12 | 12 | ||
| 13 | - - common: https://github.com/web-platform-tests/wpt/tree/bb97a68974/common | ||
| 13 | + - common: https://github.com/web-platform-tests/wpt/tree/03c5072aff/common | ||
| 14 | 14 | - console: https://github.com/web-platform-tests/wpt/tree/3b1f72e99a/console | |
| 15 | 15 | - dom/abort: https://github.com/web-platform-tests/wpt/tree/1728d198c9/dom/abort | |
| 16 | 16 | - encoding: https://github.com/web-platform-tests/wpt/tree/35f70910d3/encoding | |
@@ -21,7 +21,7 @@ Last update: | |||
| 21 | 21 | - html/webappapis/timers: https://github.com/web-platform-tests/wpt/tree/5873f2d8f1/html/webappapis/timers | |
| 22 | 22 | - interfaces: https://github.com/web-platform-tests/wpt/tree/fc086c82d5/interfaces | |
| 23 | 23 | - performance-timeline: https://github.com/web-platform-tests/wpt/tree/17ebc3aea0/performance-timeline | |
| 24 | - - resources: https://github.com/web-platform-tests/wpt/tree/972ca5b669/resources | ||
| 24 | + - resources: https://github.com/web-platform-tests/wpt/tree/fbee645164/resources | ||
| 25 | 25 | - streams: https://github.com/web-platform-tests/wpt/tree/8f60d94439/streams | |
| 26 | 26 | - url: https://github.com/web-platform-tests/wpt/tree/77d54aa9e0/url | |
| 27 | 27 | - user-timing: https://github.com/web-platform-tests/wpt/tree/df24fb604e/user-timing | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1 @@ | |||
| 1 | + Access-Control-Allow-Origin: * | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,8 @@ function get_host_info() { | |||
| 10 | 10 | var HTTPS_PORT2 = '{{ports[https][1]}}'; | |
| 11 | 11 | var PROTOCOL = self.location.protocol; | |
| 12 | 12 | var IS_HTTPS = (PROTOCOL == "https:"); | |
| 13 | + var PORT = IS_HTTPS ? HTTPS_PORT : HTTP_PORT; | ||
| 14 | + var PORT2 = IS_HTTPS ? HTTPS_PORT2 : HTTP_PORT2; | ||
| 13 | 15 | var HTTP_PORT_ELIDED = HTTP_PORT == "80" ? "" : (":" + HTTP_PORT); | |
| 14 | 16 | var HTTP_PORT2_ELIDED = HTTP_PORT2 == "80" ? "" : (":" + HTTP_PORT2); | |
| 15 | 17 | var HTTPS_PORT_ELIDED = HTTPS_PORT == "443" ? "" : (":" + HTTPS_PORT); | |
@@ -24,6 +26,8 @@ function get_host_info() { | |||
| 24 | 26 | HTTP_PORT2: HTTP_PORT2, | |
| 25 | 27 | HTTPS_PORT: HTTPS_PORT, | |
| 26 | 28 | HTTPS_PORT2: HTTPS_PORT2, | |
| 29 | + PORT: PORT, | ||
| 30 | + PORT2: PORT2, | ||
| 27 | 31 | ORIGINAL_HOST: ORIGINAL_HOST, | |
| 28 | 32 | REMOTE_HOST: REMOTE_HOST, | |
| 29 | 33 | ||
@@ -33,6 +37,7 @@ function get_host_info() { | |||
| 33 | 37 | HTTPS_ORIGIN_WITH_CREDS: 'https://foo:bar@' + ORIGINAL_HOST + HTTPS_PORT_ELIDED, | |
| 34 | 38 | HTTP_ORIGIN_WITH_DIFFERENT_PORT: 'http://' + ORIGINAL_HOST + HTTP_PORT2_ELIDED, | |
| 35 | 39 | REMOTE_ORIGIN: PROTOCOL + "//" + REMOTE_HOST + PORT_ELIDED, | |
| 40 | + OTHER_ORIGIN: PROTOCOL + "//" + OTHER_HOST + PORT_ELIDED, | ||
| 36 | 41 | HTTP_REMOTE_ORIGIN: 'http://' + REMOTE_HOST + HTTP_PORT_ELIDED, | |
| 37 | 42 | HTTP_NOTSAMESITE_ORIGIN: 'http://' + NOTSAMESITE_HOST + HTTP_PORT_ELIDED, | |
| 38 | 43 | HTTP_REMOTE_ORIGIN_WITH_DIFFERENT_PORT: 'http://' + REMOTE_HOST + HTTP_PORT2_ELIDED, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,16 @@ | |||
| 1 | 1 | const createBuffer = (() => { | |
| 2 | 2 | // See https://github.com/whatwg/html/issues/5380 for why not `new SharedArrayBuffer()` | |
| 3 | - const sabConstructor = new WebAssembly.Memory({ shared:true, initial:0, maximum:0 }).buffer.constructor; | ||
| 3 | + let sabConstructor; | ||
| 4 | + try { | ||
| 5 | + sabConstructor = new WebAssembly.Memory({ shared:true, initial:0, maximum:0 }).buffer.constructor; | ||
| 6 | + } catch(e) { | ||
| 7 | + sabConstructor = null; | ||
| 8 | + } | ||
| 4 | 9 | return (type, length) => { | |
| 5 | 10 | if (type === "ArrayBuffer") { | |
| 6 | 11 | return new ArrayBuffer(length); | |
| 7 | 12 | } else if (type === "SharedArrayBuffer") { | |
| 8 | - if (sabConstructor.name !== "SharedArrayBuffer") { | ||
| 13 | + if (sabConstructor && sabConstructor.name !== "SharedArrayBuffer") { | ||
| 9 | 14 | throw new Error("WebAssembly.Memory does not support shared:true"); | |
| 10 | 15 | } | |
| 11 | 16 | return new sabConstructor(length); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,12 @@ | |||
| 1 | + <!DOCTYPE html> | ||
| 2 | + <meta charset="utf-8"> | ||
| 3 | + <title>A page that sets window.name</title> | ||
| 4 | + | ||
| 5 | + <script> | ||
| 6 | + "use strict"; | ||
| 7 | + | ||
| 8 | + window.onload = () => { | ||
| 9 | + window.name = location.hash.slice(1); // Drop the first '#' character. | ||
| 10 | + window.name = "spices"; | ||
| 11 | + }; | ||
| 12 | + </script> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -36,6 +36,7 @@ function checkDataKeys(node) { | |||
| 36 | 36 | "data-expected-scroll-width", | |
| 37 | 37 | "data-expected-scroll-height", | |
| 38 | 38 | "data-expected-bounding-client-rect-width", | |
| 39 | + "data-expected-bounding-client-rect-height", | ||
| 39 | 40 | "data-total-x", | |
| 40 | 41 | "data-total-y", | |
| 41 | 42 | "data-expected-display", | |
@@ -107,6 +108,11 @@ function checkExpectedValues(t, node, prefix) | |||
| 107 | 108 | assert_tolerance(node.getBoundingClientRect().width, expectedWidth, prefix + "getBoundingClientRect().width"); | |
| 108 | 109 | } | |
| 109 | 110 | ||
| 111 | + var expectedHeight = checkAttribute(output, node, "data-expected-bounding-client-rect-height"); | ||
| 112 | + if (expectedHeight) { | ||
| 113 | + assert_tolerance(node.getBoundingClientRect().height, expectedHeight, prefix + "getBoundingClientRect().height"); | ||
| 114 | + } | ||
| 115 | + | ||
| 110 | 116 | var expectedOffset = checkAttribute(output, node, "data-total-x"); | |
| 111 | 117 | if (expectedOffset) { | |
| 112 | 118 | var totalLeft = node.clientLeft + node.offsetLeft; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments