Revision 5d3d98450ed243074ead60b3dd06c94c8608bc77 authored by Chris Nardi on 08 April 2018, 02:03:44 UTC, committed by Chris Nardi on 08 April 2018, 02:03:44 UTC
Many tests in variable-presentation-attribute.html went against their relative specs. For most attributes, this change corrects their default values. This change also removes the default value test for font-family, since the default value is implementation-dependent. This change also removes the tests for `glyph-orientation-horizontal`, `glyph-orientation-vertical`, and `kerning`, as these properties have been removed by Chrome and Firefox as they are obsolete.
1 parent d0d6224
open-send-during-abort.htm
<!doctype html>
<title>XMLHttpRequest: open() during abort()</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
async_test(t => {
let result = [],
client = new XMLHttpRequest(),
expected = [1, 4, 1, 'hello']
client.open("GET", "data:text/plain,")
result.push(client.readyState)
client.send()
client.onreadystatechange = t.step_func(() => {
client.onreadystatechange = null
result.push(client.readyState)
client.open("GET", "data:text/plain,hello")
client.onload = t.step_func_done(() => {
result.push(client.responseText)
assert_array_equals(result, expected)
})
client.send()
})
client.abort()
result.push(client.readyState) // surprise! should not be "unsent" even though we called abort()
})
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...