Update web-platform-tests to revision 0313d9f383d954ef401e79f3b669a5781aa3441a

This commit is contained in:
WPT Sync Bot 2018-09-02 21:39:17 -04:00
parent aa61200eca
commit b28a41ac85
55 changed files with 970 additions and 156 deletions

View file

@ -47933,6 +47933,90 @@
{}
]
],
"css/CSS2/floats/float-nowrap-2.html": [
[
"/css/CSS2/floats/float-nowrap-2.html",
[
[
"/css/CSS2/floats/float-nowrap-1.html",
"=="
]
],
{}
]
],
"css/CSS2/floats/float-nowrap-3.html": [
[
"/css/CSS2/floats/float-nowrap-3.html",
[
[
"/css/CSS2/floats/float-nowrap-3-ref.html",
"=="
]
],
{}
]
],
"css/CSS2/floats/float-nowrap-5.html": [
[
"/css/CSS2/floats/float-nowrap-5.html",
[
[
"/css/CSS2/floats/float-nowrap-5-ref.html",
"=="
]
],
{}
]
],
"css/CSS2/floats/float-nowrap-6.html": [
[
"/css/CSS2/floats/float-nowrap-6.html",
[
[
"/css/CSS2/floats/float-nowrap-5-ref.html",
"=="
]
],
{}
]
],
"css/CSS2/floats/float-nowrap-7.html": [
[
"/css/CSS2/floats/float-nowrap-7.html",
[
[
"/css/CSS2/floats/float-nowrap-1.html",
"=="
]
],
{}
]
],
"css/CSS2/floats/float-nowrap-8.html": [
[
"/css/CSS2/floats/float-nowrap-8.html",
[
[
"/css/CSS2/floats/float-nowrap-1.html",
"=="
]
],
{}
]
],
"css/CSS2/floats/float-nowrap-9.html": [
[
"/css/CSS2/floats/float-nowrap-9.html",
[
[
"/css/CSS2/floats/float-nowrap-3-ref.html",
"=="
]
],
{}
]
],
"css/CSS2/floats/floated-table-wider-than-specified.html": [
[
"/css/CSS2/floats/floated-table-wider-than-specified.html",
@ -164497,6 +164581,18 @@
{}
]
],
"css/cssom-view/cssom-getBoundingClientRect-vertical-rl.html": [
[
"/css/cssom-view/cssom-getBoundingClientRect-vertical-rl.html",
[
[
"/css/cssom-view/cssom-getBoundingClientRect-vertical-rl-ref.html",
"=="
]
],
{}
]
],
"css/cssom-view/scrollTop-display-change.html": [
[
"/css/cssom-view/scrollTop-display-change.html",
@ -191107,6 +191203,42 @@
]
},
"reftest_node": {
"css/CSS2/floats/float-nowrap-1.html": [
[
"/css/CSS2/floats/float-nowrap-1.html",
[
[
"/css/CSS2/floats/float-nowrap-1-notref.html",
"!="
]
],
{}
]
],
"css/CSS2/floats/float-nowrap-3-ref.html": [
[
"/css/CSS2/floats/float-nowrap-3-ref.html",
[
[
"/css/CSS2/floats/float-nowrap-4.html",
"!="
]
],
{}
]
],
"css/CSS2/floats/float-nowrap-4.html": [
[
"/css/CSS2/floats/float-nowrap-4.html",
[
[
"/css/CSS2/floats/float-nowrap-4-ref.html",
"=="
]
],
{}
]
],
"css/CSS2/floats/floats-placement-vertical-004-ref.xht": [
[
"/css/CSS2/floats/floats-placement-vertical-004-ref.xht",
@ -230343,6 +230475,21 @@
{}
]
],
"css/CSS2/floats/float-nowrap-1-notref.html": [
[
{}
]
],
"css/CSS2/floats/float-nowrap-4-ref.html": [
[
{}
]
],
"css/CSS2/floats/float-nowrap-5-ref.html": [
[
{}
]
],
"css/CSS2/floats/floats-in-table-caption-001-ref.html": [
[
{}
@ -270338,6 +270485,11 @@
{}
]
],
"css/cssom-view/cssom-getBoundingClientRect-vertical-rl-ref.html": [
[
{}
]
],
"css/cssom-view/iframe.html": [
[
{}
@ -336024,9 +336176,7 @@
"css/css-transitions/transitions-animatable-properties-01.html": [
[
"/css/css-transitions/transitions-animatable-properties-01.html",
{
"timeout": "long"
}
{}
]
],
"css/css-transitions/zero-duration-multiple-transition.html": [
@ -479766,6 +479916,58 @@
"59843ae54b64f6ce4f7e616d4be491c911ea84cf",
"support"
],
"css/CSS2/floats/float-nowrap-1-notref.html": [
"540c8048af61a2c7804d99ff14c3a2bf1f87e6ad",
"support"
],
"css/CSS2/floats/float-nowrap-1.html": [
"656b9398e6b771b5cf0545a1a40bcb36a115301b",
"reftest_node"
],
"css/CSS2/floats/float-nowrap-2.html": [
"fc8e11fadc5e66bc49bbddea99aeed0c4019bec0",
"reftest"
],
"css/CSS2/floats/float-nowrap-3-ref.html": [
"e7556a213662453f22cdcbee2adf3b21e00d6ce6",
"reftest_node"
],
"css/CSS2/floats/float-nowrap-3.html": [
"dbc643c8ca97230ab252769b4278065aec844160",
"reftest"
],
"css/CSS2/floats/float-nowrap-4-ref.html": [
"a8c7b060819839dd1e7107a327dfbf32fb1ea794",
"support"
],
"css/CSS2/floats/float-nowrap-4.html": [
"bf11e6e31c416e85580bc4792b2b3503dd87f99b",
"reftest_node"
],
"css/CSS2/floats/float-nowrap-5-ref.html": [
"7f400841037cfb79bafa2c41d3834cdd942445f4",
"support"
],
"css/CSS2/floats/float-nowrap-5.html": [
"f4403cfb838126b726ef70906d2f8df7bb733f48",
"reftest"
],
"css/CSS2/floats/float-nowrap-6.html": [
"7c6bf9c0db6a112e364760b3320dcff3265be5c8",
"reftest"
],
"css/CSS2/floats/float-nowrap-7.html": [
"bef462d995608e13ae943329022220c55a1f315e",
"reftest"
],
"css/CSS2/floats/float-nowrap-8.html": [
"8c2653193d643a452a416f9e41eb8d8397ab0058",
"reftest"
],
"css/CSS2/floats/float-nowrap-9.html": [
"b4a6b2923097f9f9957d940db42d335b22e73def",
"reftest"
],
"css/CSS2/floats/floated-table-wider-than-specified.html": [
"f93d50e43dd3eb49d5c8964200b7fe4ebb5bd6c8",
"reftest"
@ -561043,7 +561245,7 @@
"testharness"
],
"css/css-transitions/transitions-animatable-properties-01.html": [
"534f81839ac875ff6b5c5c7b17784258d7a8932c",
"06143d3061da89a148adda0e6bf2cf8f968f0f89",
"testharness"
],
"css/css-transitions/zero-duration-multiple-transition.html": [
@ -572222,6 +572424,14 @@
"a7c3568969a77903d9b49f6b09d70046ba2b98b7",
"testharness"
],
"css/cssom-view/cssom-getBoundingClientRect-vertical-rl-ref.html": [
"1ee4fe2652ff56655c20963f90810de6a979462f",
"support"
],
"css/cssom-view/cssom-getBoundingClientRect-vertical-rl.html": [
"85ac2a9665953aeb961f12a30dd4d82082d8273a",
"reftest"
],
"css/cssom-view/cssom-getBoxQuads-001.html": [
"813c245c7bef7cc726c843445378fb640044e574",
"testharness"
@ -585811,7 +586021,7 @@
"support"
],
"docs/_writing-tests/testharness.md": [
"e91302f1d214fb7fd05a9dce2676569321fc2206",
"9c21452607e8f3f9e5bbf3ef2fb7771441f4a680",
"support"
],
"docs/_writing-tests/visual.md": [
@ -614415,7 +614625,7 @@
"testharness"
],
"mediacapture-image/ImageCapture-MediaTrackSupportedConstraints.html": [
"aae75b7e8c91b76d163404d6cc319382606e4e2e",
"59a54f51d600fa5c8ee1c092afa5a07f6ae2ae3f",
"testharness"
],
"mediacapture-image/ImageCapture-creation.https.html": [
@ -614435,7 +614645,7 @@
"testharness"
],
"mediacapture-image/MediaStreamTrack-applyConstraints-getSettings.html": [
"6241d599dc325d9b567eb6900c3daafaded92af3",
"1a1b58e5415f9e04ddeb8d1874448c3b98af35e3",
"testharness"
],
"mediacapture-image/MediaStreamTrack-applyConstraints-reject.html": [
@ -614443,7 +614653,7 @@
"testharness"
],
"mediacapture-image/MediaStreamTrack-applyConstraints.html": [
"431646eb53f030dce81f15a0130ea660142ce2ce",
"8dcff926173266c9e5f14c37ff408832a8a07d7e",
"testharness"
],
"mediacapture-image/MediaStreamTrack-getCapabilities-fast.html": [
@ -614451,11 +614661,11 @@
"testharness"
],
"mediacapture-image/MediaStreamTrack-getCapabilities.html": [
"452b223a1b0bf3bad06d956e16b0eff22c8b6507",
"eceaf5b1a8665211e42094730619d38143782fdc",
"testharness"
],
"mediacapture-image/MediaStreamTrack-getConstraints-fast.html": [
"8cae4331318cb32c30e1c89339fdb37fee97a5db",
"5a5ce5f2dad58cb47e8b4215bc563e24b34b3119",
"testharness"
],
"mediacapture-image/MediaStreamTrack-getSettings-fast.html": [
@ -614463,7 +614673,7 @@
"testharness"
],
"mediacapture-image/MediaStreamTrack-getSettings.html": [
"04fbfbfb6137cf61ee6491e2bef5786f202b43e3",
"5e9256eeb740663675ea93d692481556efd97628",
"testharness"
],
"mediacapture-image/detached-HTMLCanvasElement.html": [
@ -633283,11 +633493,11 @@
"support"
],
"resources/chromium/image_capture.mojom.js": [
"1d01581e023e4655ec9d5c634aa9c8bbdf79d40b",
"11123feb87d06d53f8e933aa18fad118ae6c8737",
"support"
],
"resources/chromium/mock-imagecapture.js": [
"a700bc97b3e055a66c80aca7cac33cfac3a2334f",
"878f59eb0095b65cabffe95c5538bcb79fa97b0d",
"support"
],
"resources/chromium/mojo_bindings.js": [
@ -652835,7 +653045,7 @@
"support"
],
"webaudio/the-audio-api/the-pannernode-interface/ctor-panner.html": [
"98a171ad059eaf9b8e24f3f46db4658f76773f19",
"cdad5977c70251edc0e8ecfac68c42cc4d2c7e41",
"testharness"
],
"webaudio/the-audio-api/the-pannernode-interface/distance-exponential.html": [
@ -654371,7 +654581,7 @@
"testharness"
],
"webrtc/RTCConfiguration-iceServers.html": [
"42bc896349ccf4f81384d16d7d465d0aa90aa489",
"6069c25af4accf7334f25f1bd30b687c2022aa6c",
"testharness"
],
"webrtc/RTCConfiguration-iceTransportPolicy.html": [

View file

@ -0,0 +1,2 @@
[float-nowrap-2.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[float-nowrap-3.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[float-nowrap-5.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[float-nowrap-7.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[float-nowrap-8.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[float-nowrap-9.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[floats-in-table-caption-001.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[line-height-204.html]
expected: FAIL

View file

@ -332,3 +332,6 @@
[Descriptor matching priority: Style has higher priority than weight]
expected: FAIL
[Matching font-weight: '430' should prefer '501 550' over '502 560']
expected: FAIL

View file

@ -0,0 +1,2 @@
[css3-text-line-break-opclns-050.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[css3-text-line-break-opclns-054.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[css3-text-line-break-opclns-059.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[css3-text-line-break-opclns-164.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[css3-text-line-break-opclns-165.html]
expected: FAIL

View file

@ -11,6 +11,3 @@
[FE19 PRESENTATION FORM FOR VERTICAL HORIZONTAL ELLIPSIS may NOT appear at line start if zh and strict]
expected: FAIL
[22EF MIDLINE HORIZONTAL ELLIPSIS may NOT appear at line start if zh and strict]
expected: FAIL

View file

@ -1,2 +0,0 @@
[css-transforms-3d-on-anonymous-block-001.html]
expected: FAIL

View file

@ -335,9 +335,6 @@
[border-left-width length(in) / values]
expected: FAIL
[text-shadow shadow(shadow) / values]
expected: FAIL
[background-position length(pc) / events]
expected: FAIL
@ -464,9 +461,6 @@
[border-bottom-width length(pc) / values]
expected: FAIL
[text-indent percentage(%) / values]
expected: FAIL
[line-height length(pc) / values]
expected: FAIL

View file

@ -1,30 +1,31 @@
[transitions-animatable-properties-01.html]
expected: TIMEOUT
[border-bottom-width intermediate]
expected: FAIL
[z-index intermediate]
expected: FAIL
expected: NOTRUN
[text-indent intermediate]
expected: FAIL
expected: NOTRUN
[border-color end]
expected: FAIL
[word-spacing intermediate]
expected: FAIL
expected: NOTRUN
[outline-width intermediate]
expected: FAIL
expected: NOTRUN
[vertical-align intermediate]
expected: FAIL
expected: NOTRUN
[right intermediate]
expected: FAIL
expected: NOTRUN
[min-width intermediate]
expected: FAIL
expected: NOTRUN
[background-position end]
expected: FAIL
@ -33,10 +34,10 @@
expected: FAIL
[top intermediate]
expected: FAIL
expected: NOTRUN
[font-weight intermediate]
expected: FAIL
expected: NOTRUN
[clip intermediate]
expected: FAIL
@ -48,26 +49,170 @@
expected: FAIL
[min-height intermediate]
expected: FAIL
expected: NOTRUN
[border-top-width intermediate]
expected: FAIL
[max-width intermediate]
expected: FAIL
expected: NOTRUN
[max-height intermediate]
expected: FAIL
expected: NOTRUN
[outline-offset intermediate]
expected: FAIL
expected: NOTRUN
[border-spacing intermediate]
expected: FAIL
[left intermediate]
expected: FAIL
expected: NOTRUN
[bottom intermediate]
expected: FAIL
[margin-right end]
expected: NOTRUN
[opacity end]
expected: NOTRUN
[padding-right end]
expected: NOTRUN
[width end]
expected: NOTRUN
[word-spacing end]
expected: NOTRUN
[max-height end]
expected: NOTRUN
[max-width end]
expected: NOTRUN
[outline-color end]
expected: NOTRUN
[text-indent end]
expected: NOTRUN
[height end]
expected: NOTRUN
[width intermediate]
expected: NOTRUN
[outline-offset end]
expected: NOTRUN
[margin-top end]
expected: NOTRUN
[outline-width end]
expected: NOTRUN
[line-height end]
expected: NOTRUN
[padding-right intermediate]
expected: NOTRUN
[min-height end]
expected: NOTRUN
[margin-top intermediate]
expected: NOTRUN
[padding-left end]
expected: NOTRUN
[text-shadow intermediate]
expected: NOTRUN
[top end]
expected: NOTRUN
[font-weight end]
expected: NOTRUN
[font-size end]
expected: NOTRUN
[line-height intermediate]
expected: NOTRUN
[height intermediate]
expected: NOTRUN
[visibility intermediate]
expected: NOTRUN
[text-shadow end]
expected: NOTRUN
[margin-left end]
expected: NOTRUN
[letter-spacing intermediate]
expected: NOTRUN
[min-width end]
expected: NOTRUN
[right end]
expected: NOTRUN
[margin-left intermediate]
expected: NOTRUN
[margin-right intermediate]
expected: NOTRUN
[padding-left intermediate]
expected: NOTRUN
[padding-top end]
expected: NOTRUN
[letter-spacing end]
expected: NOTRUN
[margin-bottom end]
expected: NOTRUN
[opacity intermediate]
expected: NOTRUN
[vertical-align end]
expected: NOTRUN
[padding-top intermediate]
expected: NOTRUN
[padding-bottom intermediate]
expected: NOTRUN
[visibility end]
expected: NOTRUN
[left end]
expected: NOTRUN
[outline-color intermediate]
expected: NOTRUN
[padding-bottom end]
expected: NOTRUN
[margin-bottom intermediate]
expected: NOTRUN
[font-size intermediate]
expected: NOTRUN
[z-index end]
expected: NOTRUN

View file

@ -1,2 +1,2 @@
[parser-sets-attributes-and-children.html]
expected: CRASH
expected: TIMEOUT

View file

@ -2,6 +2,7 @@
type: testharness
[single-byte-decoder.html?document]
expected: CRASH
[windows-1254: iso_8859-9 (document.characterSet and document.inputEncoding)]
expected: FAIL
@ -508,6 +509,7 @@
[single-byte-decoder.html?XMLHttpRequest]
expected: CRASH
[ISO-8859-2: iso_8859-2:1987 (XMLHttpRequest)]
expected: FAIL

View file

@ -1,5 +1,4 @@
[fetch-in-iframe.html]
expected: CRASH
[Untitled]
expected: FAIL

View file

@ -0,0 +1,4 @@
[traverse_the_history_4.html]
[Multiple history traversals, last would be aborted]
expected: FAIL

View file

@ -30,6 +30,3 @@
[Set HTTP URL frame location.protocol to data]
expected: FAIL
[Set HTTP URL frame location.protocol to x]
expected: FAIL

View file

@ -1,5 +1,5 @@
[ignore-opens-during-unload.window.html]
expected: CRASH
expected: TIMEOUT
[ignore-opens-during-unload]
expected: FAIL
@ -12,3 +12,33 @@
[document.open should bail out when ignore-opens-during-unload is greater than 0 during pagehide event]
expected: FAIL
[document.open should bail out when ignore-opens-during-unload is greater than 0 during visibilitychange event (open(parent) while unloading parent and child)]
expected: TIMEOUT
[document.open should bail out when ignore-opens-during-unload is greater than 0 during beforeunload event (in top-level browsing context)]
expected: TIMEOUT
[document.open should bail out when ignore-opens-during-unload is greater than 0 during beforeunload event (open(parent) while unloading child only)]
expected: TIMEOUT
[document.open should bail out when ignore-opens-during-unload is greater than 0 during pagehide event (open(parent) while unloading parent and child)]
expected: TIMEOUT
[document.open should bail out when ignore-opens-during-unload is greater than 0 during pagehide event (in top-level browsing context)]
expected: FAIL
[document.open should bail out when ignore-opens-during-unload is greater than 0 during unload event (in top-level browsing context)]
expected: FAIL
[document.open should bail out when ignore-opens-during-unload is greater than 0 during visibilitychange event (in top-level browsing context)]
expected: TIMEOUT
[document.open should bail out when ignore-opens-during-unload is greater than 0 during beforeunload event (open(parent) while unloading parent and child)]
expected: TIMEOUT
[document.open should bail out when ignore-opens-during-unload is greater than 0 during visibilitychange event (open(parent) while unloading child only)]
expected: TIMEOUT
[document.open should bail out when ignore-opens-during-unload is greater than 0 during unload event (open(parent) while unloading parent and child)]
expected: TIMEOUT

View file

@ -5,7 +5,16 @@
[request.formData() with input: a=b&c=d]
expected: FAIL
[response.formData() with input: _charset_=windows-1252&test=%C2x]
[response.formData() with input: a&b&c]
expected: FAIL
[response.formData() with input: a=b&c=d&]
expected: FAIL
[response.formData() with input: &&&a=b&&&&c=d&]
expected: FAIL
[request.formData() with input: a=b&c=d&]
expected: FAIL
@ -16,9 +25,6 @@
[request.formData() with input: a&b&c]
expected: FAIL
[request.formData() with input: a=b&c=d&]
expected: FAIL
[request.formData() with input: _charset_=windows-1252&test=%C2x]
[request.formData() with input: &&&a=b&&&&c=d&]
expected: FAIL

View file

@ -1,5 +1,4 @@
[ctor-panner.html]
expected: ERROR
[X context = new OfflineAudioContext(...) incorrectly threw ReferenceError: "OfflineAudioContext is not defined".]
expected: FAIL
@ -27,3 +26,12 @@
[X node instanceof PannerNode is not equal to true. Got false.]
expected: FAIL
[X new PannerNode(c, {"coneOuterGain":1.1}) threw "InvalidStateError" instead of InvalidStateError.]
expected: FAIL
[X new PannerNode(c, {"coneOuterGain":-1}) threw "InvalidStateError" instead of InvalidStateError.]
expected: FAIL
[< [test AudioNodeOptions\] 2 out of 28 assertions were failed.]
expected: FAIL

View file

@ -0,0 +1,2 @@
[transition_calc_implicit.html]
expected: TIMEOUT

View file

@ -0,0 +1,21 @@
<!doctype html>
<title>CSS Test Reference</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<style>
div {
width: 10ch;
white-space: nowrap;
font-family: monospace;
}
span {
float: right;
width: 5ch;
height: 5ch;
background: blue;
}
</style>
<div>
<span></span>
Some text that overflows my parent.
</div>

View file

@ -0,0 +1,24 @@
<!doctype html>
<title>CSS Test: Floats in nowrap context</title>
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488725">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<link rel="mismatch" href="float-nowrap-1-notref.html">
<style>
div {
width: 10ch;
white-space: nowrap;
font-family: monospace;
}
span {
float: right;
width: 5ch;
height: 5ch;
background: blue;
}
</style>
<div>
Some text that overflows my parent.
<span></span>
</div>

View file

@ -0,0 +1,25 @@
<!doctype html>
<title>CSS Test: Floats in nowrap context</title>
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488725">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<link rel="match" href="float-nowrap-1.html">
<style>
div {
width: 10ch;
white-space: nowrap;
font-family: monospace;
}
span {
float: right;
width: 5ch;
height: 5ch;
background: blue;
}
</style>
<div>
Some text that
<span></span>
overflows my parent.
</div>

View file

@ -0,0 +1,29 @@
<!doctype html>
<title>CSS Test: Floats in nowrap context</title>
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488725">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<link rel="mismatch" href="float-nowrap-4.html">
<style>
div {
width: 10ch;
font-family: monospace;
}
.float {
float: right;
width: 5ch;
height: 5ch;
background: blue;
}
.nowrap {
white-space: nowrap;
}
</style>
<div>
Some
<span class="nowrap">
text that overflows my parent.
</span>
<span class="float"></span>
</div>

View file

@ -0,0 +1,28 @@
<!doctype html>
<title>CSS Test: Floats in nowrap context</title>
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488725">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<link rel="match" href="float-nowrap-3-ref.html">
<style>
div {
width: 10ch;
font-family: monospace;
}
.float {
float: right;
width: 5ch;
height: 5ch;
background: blue;
}
.nowrap {
white-space: nowrap;
}
</style>
<div>
Some
<span class="nowrap">
text that overflows <span class="float"></span> my parent.
</span>
</div>

View file

@ -0,0 +1,26 @@
<!doctype html>
<title>CSS Test Reference</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<style>
div {
width: 10ch;
font-family: monospace;
}
.float {
float: right;
width: 5ch;
height: 5ch;
background: blue;
}
.nowrap {
white-space: nowrap;
}
</style>
<div>
Some
<span class="float"></span>
<span class="nowrap">
text that overflows my parent.
</span>
</div>

View file

@ -0,0 +1,28 @@
<!doctype html>
<title>CSS Test: Floats in nowrap context</title>
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488725">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<link rel="match" href="float-nowrap-4-ref.html">
<style>
div {
width: 10ch;
font-family: monospace;
}
.float {
float: right;
width: 5ch;
height: 5ch;
background: blue;
}
.nowrap {
white-space: nowrap;
}
</style>
<div>
Some
<span class="nowrap">
<span class="float"></span> text that overflows my parent.
</span>
</div>

View file

@ -0,0 +1,5 @@
<!doctype html>
<title>CSS Test Reference</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<div>Hello Kittie

View file

@ -0,0 +1,16 @@
<!doctype html>
<title>CSS Test: Floats in nowrap context</title>
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488725">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<link rel="match" href="float-nowrap-5-ref.html">
<style>
div {
white-space: nowrap;
}
span {
float: left;
}
</style>
<div>Kittie<span>Hello&nbsp;</span>

View file

@ -0,0 +1,16 @@
<!doctype html>
<title>CSS Test: Floats in nowrap context</title>
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488725">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<link rel="match" href="float-nowrap-5-ref.html">
<style>
div {
white-space: nowrap;
}
span {
float: left;
}
</style>
<div><span>Hello&nbsp;</span>Kittie

View file

@ -0,0 +1,26 @@
<!doctype html>
<title>CSS Test: Floats in nowrap context</title>
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488725">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<link rel="match" href="float-nowrap-1.html">
<style>
div {
width: 10ch;
white-space: nowrap;
font-family: monospace;
}
.nowrap {
white-space: nowrap;
}
.float {
float: right;
width: 5ch;
height: 5ch;
background: blue;
}
</style>
<div>
<span class="nowrap">S<div class="float"></div><span>ome</span> text that overflows my parent.</span>
</div>

View file

@ -0,0 +1,24 @@
<!doctype html>
<title>CSS Test: Floats in nowrap context</title>
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488725">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<link rel="match" href="float-nowrap-1.html">
<style>
div {
width: 10ch;
white-space: nowrap;
font-family: monospace;
}
span {
float: right;
width: 5ch;
height: 5ch;
background: blue;
}
</style>
<div>
Some <span></span>
text that overflows my parent.
</div>

View file

@ -0,0 +1,28 @@
<!doctype html>
<title>CSS Test: Floats in nowrap context</title>
<link rel="help" href="https://drafts.csswg.org/css2/visuren.html#float-position">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=488725">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://www.mozilla.org" title="Mozilla">
<link rel="match" href="float-nowrap-3-ref.html">
<style>
div {
width: 10ch;
font-family: monospace;
}
.float {
float: right;
width: 5ch;
height: 5ch;
background: blue;
}
.nowrap {
white-space: nowrap;
}
</style>
<div>
Some
<span class="nowrap">
text <span class="float"></span> that overflows my parent.
</span>
</div>

View file

@ -5,7 +5,6 @@
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title> CSS Transitions: Animatable CSS properties </title>
<meta name="assert" content="Check that all animatable CSS properties are animatable and then accepted by the 'transition-property' property">
<meta name="timeout" content="long">
<link rel="author" title="Daniel Glazman" href="mailto:daniel.glazman@disruptive-innovations.com">
<link rel="help" href="http://www.w3.org/TR/css3-transitions/#transitions">
<link rel="help" href="http://www.w3.org/TR/css3-transitions/#animatable-properties">

View file

@ -0,0 +1,4 @@
<!DOCTYPE html>
<body style="overflow: scroll">
<div style="position: absolute; top: 50px; left: 50px; width: 200px; height: 200px; background: green"></div>
</body>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<title>CSSOM View - 6.1 - getBoundingClientRect tests</title>
<link rel="help" href="http://www.w3.org/TR/cssom-view/#dom-element-getboundingclientrect">
<link rel=match href="cssom-getBoundingClientRect-vertical-rl-ref.html">
<meta name="flags" content="dom">
<body style="writing-mode: vertical-rl; overflow: scroll">
<div id="target" style="position: absolute; top: 50px; left: 50px; width: 200px; height: 200px; background: red"></div>
<div id="overlay" style="position: absolute; background: green"></div>
<script>
var r = document.getElementById('target').getBoundingClientRect();
var overlay = document.getElementById('overlay');
overlay.style.top = r.top + 'px';
overlay.style.left = r.left + 'px';
overlay.style.width = r.width + 'px';
overlay.style.height = r.height + 'px';
</script>
</body>

View file

@ -24,7 +24,7 @@ with testharness.js. See also the [general guidelines][] for all test types.
A test file can have multiple variants by including `meta` elements,
for example:
```
```html
<meta name="variant" content="">
<meta name="variant" content="?wss">
```
@ -36,7 +36,7 @@ There are two utility scripts in that work well together with variants,
a test that would otherwise have too many tests to be useful can be
split up in ranges of subtests. For example:
```
```html
<!doctype html>
<title>Testing variants</title>
<meta name="variant" content="?1-1000">
@ -60,7 +60,7 @@ With `subsetTestByKey`, the key is given as the first argument, and the
query string can include or exclude a key (will be matched as a regular
expression).
```
```html
<!doctype html>
<title>Testing variants by key</title>
<meta name="variant" content="?include=Foo">
@ -103,13 +103,15 @@ JavaScript file with the `.js` removed.
For example, one could write a test for the `FileReaderSync` API by
creating a `FileAPI/FileReaderSync.worker.js` as follows:
importScripts("/resources/testharness.js");
test(function () {
var blob = new Blob(["Hello"]);
var fr = new FileReaderSync();
assert_equals(fr.readAsText(blob), "Hello");
}, "FileReaderSync#readAsText.");
done();
```js
importScripts("/resources/testharness.js");
test(function () {
var blob = new Blob(["Hello"]);
var fr = new FileReaderSync();
assert_equals(fr.readAsText(blob), "Hello");
}, "FileReaderSync#readAsText.");
done();
```
This test could then be run from `FileAPI/FileReaderSync.worker.html`.
@ -124,29 +126,33 @@ By default, the test runs in a window scope and a dedicated worker scope.
For example, one could write a test for the `Blob` constructor by
creating a `FileAPI/Blob-constructor.any.js` as follows:
test(function () {
var blob = new Blob();
assert_equals(blob.size, 0);
assert_equals(blob.type, "");
assert_false(blob.isClosed);
}, "The Blob constructor.");
```js
test(function () {
var blob = new Blob();
assert_equals(blob.size, 0);
assert_equals(blob.type, "");
assert_false(blob.isClosed);
}, "The Blob constructor.");
```
This test could then be run from `FileAPI/Blob-constructor.any.worker.html` as well
as `FileAPI/Blob-constructor.any.html`.
It is possible to customize the set of scopes with a metadata comment, such as
// META: global=sharedworker
// ==> would run in the default window and dedicated worker scopes,
// as well as the shared worker scope
// META: global=!default,serviceworker
// ==> would only run in the service worker scope
// META: global=!window
// ==> would run in the default dedicated worker scope, but not the
// window scope
// META: global=worker
// ==> would run in the default window scope, as well as in the
// dedicated, shared and service worker scopes
```
// META: global=sharedworker
// ==> would run in the default window and dedicated worker scopes,
// as well as the shared worker scope
// META: global=!default,serviceworker
// ==> would only run in the service worker scope
// META: global=!window
// ==> would run in the default dedicated worker scope, but not the
// window scope
// META: global=worker
// ==> would run in the default window scope, as well as in the
// dedicated, shared and service worker scopes
```
For a test file <code><var>x</var>.any.js</code>, the available scope keywords
are:
@ -172,8 +178,10 @@ Use `// META: title=This is the title of the test` at the beginning of the resou
Use `// META: script=link/to/resource.js` at the beginning of the resource. For example,
// META: script=/common/utils.js
// META: script=resources/utils.js
```
// META: script=/common/utils.js
// META: script=resources/utils.js
```
can be used to include both the global and a local `utils.js` in a test.
@ -185,8 +193,10 @@ Use `// META: timeout=long` at the beginning of the resource.
Use `// META: variant=url-suffix` at the beginning of the resource. For example,
// META: variant=
// META: variant=?wss
```
// META: variant=
// META: variant=?wss
```
[general guidelines]: {{ site.baseurl }}{% link _writing-tests/general-guidelines.md %}

View file

@ -18,6 +18,7 @@ test(function() {
assert_true(supported_constraints.contrast);
assert_true(supported_constraints.saturation);
assert_true(supported_constraints.sharpness);
assert_true(supported_constraints.focusDistance);
assert_true(supported_constraints.zoom);
assert_true(supported_constraints.torch);
}, 'Image Capture supported constraints');

View file

@ -31,6 +31,7 @@ image_capture_test(async t => {
contrast : 4,
saturation : 5,
sharpness : 6,
focusDistance : 7,
zoom : 3.141592,
@ -82,6 +83,8 @@ image_capture_test(async t => {
assert_equals(constraints.advanced[0].sharpness, settings.sharpness,
'sharpness');
assert_equals(constraints.advanced[0].focusDistance, settings.focusDistance,
'focusDistance');
assert_equals(constraints.advanced[0].zoom, settings.zoom, 'zoom');
assert_equals(constraints.advanced[0].torch, settings.torch, 'torch');

View file

@ -33,6 +33,7 @@ image_capture_test(async (t, imageCaptureTest) => {
contrast : 4,
saturation : 5,
sharpness : 6,
focusDistance : 7,
zoom : 3.141592,
@ -101,6 +102,9 @@ image_capture_test(async (t, imageCaptureTest) => {
'saturation');
assert_equals(constraintsDict.sharpness, theMock.options().sharpness,
'sharpness');
assert_equals(constraintsDict.focusDistance, theMock.options().focusDistance
,'focusDistance');
assert_equals(constraintsDict.torch, theMock.options().torch, 'torch');

View file

@ -124,6 +124,14 @@ image_capture_test(async (t, imageCaptureTest) => {
assert_equals(capabilities.sharpness.step,
mockCapabilities.sharpness.step);
assert_true(capabilities.focusDistance instanceof MediaSettingsRange);
assert_equals(capabilities.focusDistance.max,
mockCapabilities.focusDistance.max);
assert_equals(capabilities.focusDistance.min,
mockCapabilities.focusDistance.min);
assert_equals(capabilities.focusDistance.step,
mockCapabilities.focusDistance.step);
assert_true(capabilities.zoom instanceof MediaSettingsRange);
assert_equals(capabilities.zoom.max, mockCapabilities.zoom.max);
assert_equals(capabilities.zoom.min, mockCapabilities.zoom.min);

View file

@ -18,6 +18,7 @@ const constraints = { whiteBalanceMode : "manual",
contrast : 4,
saturation : 5,
sharpness : 6,
focusDistance : 7,
zoom : 3.141592
// TODO: torch https://crbug.com/700607.

View file

@ -58,6 +58,7 @@ image_capture_test(async (t, imageCaptureTest) => {
assert_equals(settings.saturation, mockSettings.saturation.current);
assert_equals(settings.sharpness, mockSettings.sharpness.current);
assert_equals(settings.focusDistance, mockSettings.focusDistance.current);
assert_equals(settings.zoom, mockSettings.zoom.current);
assert_equals(settings.torch, mockSettings.torch, 'torch');

View file

@ -173,6 +173,7 @@
this.contrast = null;
this.saturation = null;
this.sharpness = null;
this.focusDistance = null;
this.zoom = null;
this.redEyeReduction = 0;
this.height = null;
@ -193,7 +194,7 @@
return err;
var kVersionSizes = [
{version: 0, numBytes: 152}
{version: 0, numBytes: 160}
];
err = messageValidator.validateStructVersion(offset, kVersionSizes);
if (err !== validator.validationError.NONE)
@ -284,41 +285,47 @@
return err;
// validate PhotoState.zoom
// validate PhotoState.focusDistance
err = messageValidator.validateStructPointer(offset + codec.kStructHeaderSize + 104, Range, false);
if (err !== validator.validationError.NONE)
return err;
// validate PhotoState.zoom
err = messageValidator.validateStructPointer(offset + codec.kStructHeaderSize + 112, Range, false);
if (err !== validator.validationError.NONE)
return err;
// validate PhotoState.redEyeReduction
err = messageValidator.validateEnum(offset + codec.kStructHeaderSize + 112, RedEyeReduction);
err = messageValidator.validateEnum(offset + codec.kStructHeaderSize + 120, RedEyeReduction);
if (err !== validator.validationError.NONE)
return err;
// validate PhotoState.height
err = messageValidator.validateStructPointer(offset + codec.kStructHeaderSize + 120, Range, false);
if (err !== validator.validationError.NONE)
return err;
// validate PhotoState.width
err = messageValidator.validateStructPointer(offset + codec.kStructHeaderSize + 128, Range, false);
if (err !== validator.validationError.NONE)
return err;
// validate PhotoState.width
err = messageValidator.validateStructPointer(offset + codec.kStructHeaderSize + 136, Range, false);
if (err !== validator.validationError.NONE)
return err;
// validate PhotoState.fillLightMode
err = messageValidator.validateArrayPointer(offset + codec.kStructHeaderSize + 136, 4, new codec.Enum(FillLightMode), false, [0], 0);
err = messageValidator.validateArrayPointer(offset + codec.kStructHeaderSize + 144, 4, new codec.Enum(FillLightMode), false, [0], 0);
if (err !== validator.validationError.NONE)
return err;
return validator.validationError.NONE;
};
PhotoState.encodedSize = codec.kStructHeaderSize + 144;
PhotoState.encodedSize = codec.kStructHeaderSize + 152;
PhotoState.decode = function(decoder) {
var packed;
@ -345,6 +352,7 @@
val.contrast = decoder.decodeStructPointer(Range);
val.saturation = decoder.decodeStructPointer(Range);
val.sharpness = decoder.decodeStructPointer(Range);
val.focusDistance = decoder.decodeStructPointer(Range);
val.zoom = decoder.decodeStructPointer(Range);
val.redEyeReduction = decoder.decodeStruct(codec.Int32);
decoder.skip(1);
@ -382,6 +390,7 @@
encoder.encodeStructPointer(Range, val.contrast);
encoder.encodeStructPointer(Range, val.saturation);
encoder.encodeStructPointer(Range, val.sharpness);
encoder.encodeStructPointer(Range, val.focusDistance);
encoder.encodeStructPointer(Range, val.zoom);
encoder.encodeStruct(codec.Int32, val.redEyeReduction);
encoder.skip(1);
@ -463,6 +472,7 @@
this.hasContrast = false;
this.hasSaturation = false;
this.hasSharpness = false;
this.hasFocusDistance = false;
this.hasZoom = false;
this.hasTorch = false;
this.torch = false;
@ -482,6 +492,7 @@
this.contrast = 0;
this.saturation = 0;
this.sharpness = 0;
this.focusDistance = 0;
this.zoom = 0;
this.fillLightMode = 0;
this.width = 0;
@ -501,7 +512,7 @@
return err;
var kVersionSizes = [
{version: 0, numBytes: 120}
{version: 0, numBytes: 128}
];
err = messageValidator.validateStructVersion(offset, kVersionSizes);
if (err !== validator.validationError.NONE)
@ -551,11 +562,13 @@
// validate PhotoSettings.fillLightMode
err = messageValidator.validateEnum(offset + codec.kStructHeaderSize + 88, FillLightMode);
err = messageValidator.validateEnum(offset + codec.kStructHeaderSize + 96, FillLightMode);
if (err !== validator.validationError.NONE)
return err;
@ -568,7 +581,7 @@
return validator.validationError.NONE;
};
PhotoSettings.encodedSize = codec.kStructHeaderSize + 112;
PhotoSettings.encodedSize = codec.kStructHeaderSize + 120;
PhotoSettings.decode = function(decoder) {
var packed;
@ -587,15 +600,16 @@
packed = decoder.readUint8();
val.hasSaturation = (packed >> 0) & 1 ? true : false;
val.hasSharpness = (packed >> 1) & 1 ? true : false;
val.hasZoom = (packed >> 2) & 1 ? true : false;
val.hasTorch = (packed >> 3) & 1 ? true : false;
val.torch = (packed >> 4) & 1 ? true : false;
val.hasFillLightMode = (packed >> 5) & 1 ? true : false;
val.hasWidth = (packed >> 6) & 1 ? true : false;
val.hasHeight = (packed >> 7) & 1 ? true : false;
val.hasFocusDistance = (packed >> 2) & 1 ? true : false;
val.hasZoom = (packed >> 3) & 1 ? true : false;
val.hasTorch = (packed >> 4) & 1 ? true : false;
val.torch = (packed >> 5) & 1 ? true : false;
val.hasFillLightMode = (packed >> 6) & 1 ? true : false;
val.hasWidth = (packed >> 7) & 1 ? true : false;
packed = decoder.readUint8();
val.hasRedEyeReduction = (packed >> 0) & 1 ? true : false;
val.redEyeReduction = (packed >> 1) & 1 ? true : false;
val.hasHeight = (packed >> 0) & 1 ? true : false;
val.hasRedEyeReduction = (packed >> 1) & 1 ? true : false;
val.redEyeReduction = (packed >> 2) & 1 ? true : false;
decoder.skip(1);
val.whiteBalanceMode = decoder.decodeStruct(codec.Int32);
val.exposureMode = decoder.decodeStruct(codec.Int32);
@ -608,6 +622,7 @@
val.contrast = decoder.decodeStruct(codec.Double);
val.saturation = decoder.decodeStruct(codec.Double);
val.sharpness = decoder.decodeStruct(codec.Double);
val.focusDistance = decoder.decodeStruct(codec.Double);
val.zoom = decoder.decodeStruct(codec.Double);
val.fillLightMode = decoder.decodeStruct(codec.Int32);
decoder.skip(1);
@ -636,16 +651,17 @@
packed = 0;
packed |= (val.hasSaturation & 1) << 0
packed |= (val.hasSharpness & 1) << 1
packed |= (val.hasZoom & 1) << 2
packed |= (val.hasTorch & 1) << 3
packed |= (val.torch & 1) << 4
packed |= (val.hasFillLightMode & 1) << 5
packed |= (val.hasWidth & 1) << 6
packed |= (val.hasHeight & 1) << 7
packed |= (val.hasFocusDistance & 1) << 2
packed |= (val.hasZoom & 1) << 3
packed |= (val.hasTorch & 1) << 4
packed |= (val.torch & 1) << 5
packed |= (val.hasFillLightMode & 1) << 6
packed |= (val.hasWidth & 1) << 7
encoder.writeUint8(packed);
packed = 0;
packed |= (val.hasRedEyeReduction & 1) << 0
packed |= (val.redEyeReduction & 1) << 1
packed |= (val.hasHeight & 1) << 0
packed |= (val.hasRedEyeReduction & 1) << 1
packed |= (val.redEyeReduction & 1) << 2
encoder.writeUint8(packed);
encoder.skip(1);
encoder.encodeStruct(codec.Int32, val.whiteBalanceMode);
@ -659,6 +675,7 @@
encoder.encodeStruct(codec.Double, val.contrast);
encoder.encodeStruct(codec.Double, val.saturation);
encoder.encodeStruct(codec.Double, val.sharpness);
encoder.encodeStruct(codec.Double, val.focusDistance);
encoder.encodeStruct(codec.Double, val.zoom);
encoder.encodeStruct(codec.Int32, val.fillLightMode);
encoder.skip(1);

View file

@ -77,6 +77,13 @@ var ImageCaptureTest = (() => {
step: 1.0
},
focusDistance: {
min: 1.0,
max: 10.0,
current: 3.0,
step: 1.0
},
zoom: {
min: 0.0,
max: 10.0,
@ -130,6 +137,8 @@ var ImageCaptureTest = (() => {
this.state_.state.zoom.current = settings.zoom;
if (settings.hasFocusMode)
this.state_.state.currentFocusMode = settings.focusMode;
if (settings.hasFocusDistance)
this.state_.state.focusDistance.current = settings.focusDistance;
if (settings.pointsOfInterest.length > 0) {
this.state_.state.pointsOfInterest =

View file

@ -192,6 +192,67 @@
'new PannerNode(c, ' + JSON.stringify(options) + ')')
.throw(TypeError);
// Test maxDistance
options = {maxDistance: -1};
should(
() => {
node = new PannerNode(context, options);
},
'new PannerNode(c, ' + JSON.stringify(options) + ')')
.throw(RangeError);
options = {maxDistance: 100};
should(
() => {
node = new PannerNode(context, options);
},
'node7 = new PannerNode(c, ' + JSON.stringify(options) + ')')
.notThrow();
should(node.maxDistance, 'node7.maxDistance')
.beEqualTo(options.maxDistance);
// Test rolloffFactor
options = {rolloffFactor: -1};
should(
() => {
node = new PannerNode(context, options);
},
'new PannerNode(c, ' + JSON.stringify(options) + ')')
.throw(RangeError);
options = {rolloffFactor: 0.5};
should(
() => {
node = new PannerNode(context, options);
},
'node8 = new PannerNode(c, ' + JSON.stringify(options) + ')')
.notThrow();
should(node.rolloffFactor, 'node8.rolloffFactor')
.beEqualTo(options.rolloffFactor);
// Test coneOuterGain
options = {coneOuterGain: -1};
should(
() => {
node = new PannerNode(context, options);
},
'new PannerNode(c, ' + JSON.stringify(options) + ')')
.throw('InvalidStateError');
options = {coneOuterGain: 1.1};
should(
() => {
node = new PannerNode(context, options);
},
'new PannerNode(c, ' + JSON.stringify(options) + ')')
.throw('InvalidStateError');
options = {coneOuterGain: 0.5};
should(
() => {
node = new PannerNode(context, options);
},
'node9 = new PannerNode(c, ' + JSON.stringify(options) + ')')
.notThrow();
should(node.coneOuterGain, 'node9.coneOuterGain')
.beEqualTo(options.coneOuterGain);
task.done();
});
@ -218,7 +279,7 @@
rolloffFactor: 3 * Math.PI,
coneInnerAngle: 4 * Math.PI,
coneOuterAngle: 5 * Math.PI,
coneOuterGain: 6 * Math.PI
coneOuterGain: 0.1 * Math.PI
};
should(

View file

@ -83,19 +83,6 @@
makePc({ iceServers: [{}] }));
}, '{ iceServers: [{}] } should throw TypeError');
config_test(makePc => {
const pc = makePc({ iceServers: [{
urls: []
}] });
const { iceServers } = pc.getConfiguration();
assert_equals(iceServers.length, 1);
const server = iceServers[0];
assert_array_equals(server.urls, []);
assert_equals(server.credentialType, 'password');
}, 'with empty list urls should succeed');
config_test(makePc => {
const pc = makePc({ iceServers: [{
urls: 'stun:stun1.example.net'
@ -322,32 +309,11 @@
}, 'with invalid stun url should throw SyntaxError');
config_test(makePc => {
const pc = makePc({ iceServers: [{
urls: [],
credentialType: 'password'
}] });
const { iceServers } = pc.getConfiguration();
assert_equals(iceServers.length, 1);
const server = iceServers[0];
assert_array_equals(server.urls, []);
assert_equals(server.credentialType, 'password');
}, `with empty urls and credentialType password should succeed`);
config_test(makePc => {
const pc = makePc({ iceServers: [{
urls: [],
credentialType: 'oauth'
}] });
const { iceServers } = pc.getConfiguration();
assert_equals(iceServers.length, 1);
const server = iceServers[0];
assert_array_equals(server.urls, []);
assert_equals(server.credentialType, 'oauth');
}, `with empty urls and credentialType oauth should succeed`);
assert_throws('SyntaxError', () =>
makePc({ iceServers: [{
urls: []
}] }));
}, `with empty urls should throw SyntaxError`);
config_test(makePc => {
assert_throws(new TypeError(), () =>