mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision 281f62f2d8ffe72128d848851ac1e8d823f608f6
This commit is contained in:
parent
f4a5709e37
commit
2999a91526
292 changed files with 2232 additions and 742 deletions
|
@ -3,3 +3,6 @@
|
|||
[Blob charset should override any auto-detected charset.]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Blob charset should override <meta charset>.]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
expected: TIMEOUT
|
||||
|
||||
[Opening a blob URL in a new window immediately before revoking it works.]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Fetching a blob URL immediately before revoking it works in an iframe.]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[hit-test-floats-003.html]
|
||||
[Miss float below something else]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[hit-test-floats-005.html]
|
||||
[Miss clipped float]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[flex-aspect-ratio-img-row-008.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[flex-aspect-ratio-img-row-009.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[flex-aspect-ratio-img-row-010.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[flex-aspect-ratio-img-row-011.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[svg-root-as-flex-item-002.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[svg-root-as-flex-item-003.html]
|
||||
expected: FAIL
|
|
@ -1,4 +0,0 @@
|
|||
[CaretPosition-001.html]
|
||||
[Element at (400, 100)]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[elementFromPoint-001.html]
|
||||
[CSSOM View - 5 - extensions to the Document interface]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[elementsFromPoint-invalid-cases.html]
|
||||
[The root element is the last element returned for otherwise empty queries within the viewport]
|
||||
expected: FAIL
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
[offsetTopLeft-border-box.html]
|
||||
[container: 1]
|
||||
expected: FAIL
|
||||
|
||||
[container: 0]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
[rule-restrictions.html]
|
||||
[@page]
|
||||
expected: FAIL
|
||||
|
||||
[@keyframe]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[feflood-with-filter-reference.html]
|
||||
expected: FAIL
|
|
@ -321,12 +321,15 @@
|
|||
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;x=" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -56,3 +56,6 @@
|
|||
[separate text/javascript;charset=windows-1252 error text/javascript]
|
||||
expected: FAIL
|
||||
|
||||
[separate text/javascript x/x]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -11,9 +11,3 @@
|
|||
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
|
||||
expected: FAIL
|
||||
|
||||
[X-Content-Type-Options%3A%20%22nosniFF%22]
|
||||
expected: FAIL
|
||||
|
||||
[X-Content-Type-Options%3A%20%2Cnosniff]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[traverse_the_history_5.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[2d.text.measure.fontBoundingBox.ahem.html]
|
||||
[Testing fontBoundingBox for font ahem]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[fieldset-content-rtl.html]
|
||||
expected: FAIL
|
|
@ -1,5 +1,5 @@
|
|||
[iframe_sandbox_popups_escaping-2.html]
|
||||
expected: TIMEOUT
|
||||
expected: CRASH
|
||||
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
[iframe_sandbox_popups_escaping-3.html]
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
[iframe_sandbox_popups_nonescaping-1.html]
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[iframe_sandbox_popups_nonescaping-2.html]
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[iframe_sandbox_popups_nonescaping-3.html]
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[ignore-opens-during-unload.window.html]
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[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
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
[017.html]
|
||||
expected: TIMEOUT
|
||||
[origin of the script that invoked the method, about:blank]
|
||||
expected: TIMEOUT
|
||||
|
|
@ -3,3 +3,6 @@
|
|||
[Blob charset should override any auto-detected charset.]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Blob charset should override <meta charset>.]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
expected: FAIL
|
||||
|
||||
[Opening a blob URL in a new window immediately before revoking it works.]
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[Opening a blob URL in a noopener about:blank window immediately before revoking it works.]
|
||||
expected: TIMEOUT
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,4 +0,0 @@
|
|||
[hit-test-floats-003.html]
|
||||
[Miss float below something else]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[hit-test-floats-005.html]
|
||||
[Miss clipped float]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[flex-aspect-ratio-img-row-008.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[flex-aspect-ratio-img-row-009.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[flex-aspect-ratio-img-row-010.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[flex-aspect-ratio-img-row-011.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[svg-root-as-flex-item-002.html]
|
||||
expected: FAIL
|
|
@ -0,0 +1,2 @@
|
|||
[svg-root-as-flex-item-003.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[math-script-level-auto-and-math-style-003.tentative.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[math-script-level-auto-and-math-style-004.tentative.html]
|
||||
expected: FAIL
|
|
@ -1,4 +0,0 @@
|
|||
[CaretPosition-001.html]
|
||||
[Element at (400, 100)]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[elementFromPoint-001.html]
|
||||
[CSSOM View - 5 - extensions to the Document interface]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[elementsFromPoint-invalid-cases.html]
|
||||
[The root element is the last element returned for otherwise empty queries within the viewport]
|
||||
expected: FAIL
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
[offsetTopLeft-border-box.html]
|
||||
[container: 1]
|
||||
expected: FAIL
|
||||
|
||||
[container: 0]
|
||||
expected: FAIL
|
||||
|
7
tests/wpt/metadata/css/cssom/rule-restrictions.html.ini
Normal file
7
tests/wpt/metadata/css/cssom/rule-restrictions.html.ini
Normal file
|
@ -0,0 +1,7 @@
|
|||
[rule-restrictions.html]
|
||||
[@page]
|
||||
expected: FAIL
|
||||
|
||||
[@keyframe]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[feflood-with-filter-reference.html]
|
||||
expected: FAIL
|
|
@ -321,12 +321,15 @@
|
|||
[<iframe>: combined response Content-Type: text/html;charset=gbk text/plain text/html]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html;x=" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;x=" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: separate response Content-Type: text/html */*]
|
||||
expected: FAIL
|
||||
|
||||
[<iframe>: combined response Content-Type: text/html;" \\" text/plain]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -56,3 +56,6 @@
|
|||
[separate text/javascript;charset=windows-1252 error text/javascript]
|
||||
expected: FAIL
|
||||
|
||||
[separate text/javascript x/x]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -11,9 +11,3 @@
|
|||
[X-Content-Type-Options%3A%20nosniff%2C%2C%40%23%24%23%25%25%26%5E%26%5E*()()11!]
|
||||
expected: FAIL
|
||||
|
||||
[X-Content-Type-Options%3A%20%22nosniFF%22]
|
||||
expected: FAIL
|
||||
|
||||
[X-Content-Type-Options%3A%20%2Cnosniff]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[traverse_the_history_5.html]
|
||||
[Multiple history traversals, last would be aborted]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
[2d.text.measure.fontBoundingBox.ahem.html]
|
||||
[Testing fontBoundingBox for font ahem]
|
||||
expected: FAIL
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
[fieldset-content-rtl.html]
|
||||
expected: FAIL
|
|
@ -1,5 +1,5 @@
|
|||
[iframe_sandbox_popups_escaping-2.html]
|
||||
expected: TIMEOUT
|
||||
expected: CRASH
|
||||
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
||||
expected: TIMEOUT
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
[iframe_sandbox_popups_escaping-3.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe escape the sandbox if\n allow-popups-to-escape-sandbox is used]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[iframe_sandbox_popups_nonescaping-1.html]
|
||||
type: testharness
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[iframe_sandbox_popups_nonescaping-2.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[iframe_sandbox_popups_nonescaping-3.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[Check that popups from a sandboxed iframe do not escape the sandbox]
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[ignore-opens-during-unload.window.html]
|
||||
expected: CRASH
|
||||
expected: TIMEOUT
|
||||
[ignore-opens-during-unload]
|
||||
expected: FAIL
|
||||
|
||||
|
|
5
tests/wpt/metadata/webmessaging/with-ports/017.html.ini
Normal file
5
tests/wpt/metadata/webmessaging/with-ports/017.html.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[017.html]
|
||||
expected: TIMEOUT
|
||||
[origin of the script that invoked the method, about:blank]
|
||||
expected: TIMEOUT
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
<body>
|
||||
<script>
|
||||
async_test(function(t) {
|
||||
assert_true(typeof crypto.subtle !== 'undefined');
|
||||
assert_not_equals(typeof crypto.subtle, 'undefined');
|
||||
t.done();
|
||||
}, "Secure context window has access to crypto.subtle");
|
||||
async_test(function(t) {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<script>
|
||||
test(() => {
|
||||
assert_true(typeof NodeFilter === "function");
|
||||
assert_equals(typeof NodeFilter, "function");
|
||||
}, "Must be a function according to typeof");
|
||||
|
||||
test(() => {
|
||||
|
|
|
@ -364,7 +364,7 @@ function runTests( container_url, annotation_url ) {
|
|||
return thePrefRequest
|
||||
.then(function(res) {
|
||||
var h = res.xhr.getResponseHeader('Prefer');
|
||||
assert_true(h === null, "Reponse contains the `Prefer` header when it SHOULD NOT");
|
||||
assert_equals(h, null, "Reponse contains the `Prefer` header when it SHOULD NOT");
|
||||
});
|
||||
}, 'SHOULD NOT [receive] the Prefer header when requesting the page');
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ test(function() {
|
|||
var color = cs.getPropertyValue('color');
|
||||
var webkiTextFillColor = cs.getPropertyValue('-webkit-text-fill-color');
|
||||
|
||||
assert_true(textDecorationColor == color);
|
||||
assert_true(textDecorationColor != webkiTextFillColor);
|
||||
assert_equals(textDecorationColor, color);
|
||||
assert_not_equals(textDecorationColor, webkiTextFillColor);
|
||||
});
|
||||
|
||||
</script>
|
|
@ -27,7 +27,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_log.done();
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_log.done();
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_log.done();
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<head>
|
||||
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-abc' 'sha256-k7iO9DPkNQ7PcwPP+8XyYuRiCJ0p76Ofveol9g3mFNs=' 'sha256-EgE/bwVJ+ZLL9F5hNjDqD4C7nlFFrdDaKeNIJ2cUem4='; connect-src 'self';">
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'nonce-abc' 'sha256-3iveTSiUbmzN7COYvdDwyaXXzJ3SrjKlTaOvQ/GdRpo=' 'sha256-EgE/bwVJ+ZLL9F5hNjDqD4C7nlFFrdDaKeNIJ2cUem4='; connect-src 'self';">
|
||||
<title>scripthash-basic-blocked</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
@ -26,7 +26,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
<head>
|
||||
<!-- Programmatically converted from a WebKit Reftest, please forgive resulting idiosyncracies.-->
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'sha256-k7iO9DPkNQ7PcwPP+8XyYuRiCJ0p76Ofveol9g3mFNs=' 'sha256-EgE/bwVJ+ZLL9F5hNjDqD4C7nlFFrdDaKeNIJ2cUem4=' 'sha256-lxHfHAe5I15v8qaArcZ5WiKmLU4CjV+3tJeQUqSIWBk='; connect-src 'self';">
|
||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'sha256-3iveTSiUbmzN7COYvdDwyaXXzJ3SrjKlTaOvQ/GdRpo=' 'sha256-EgE/bwVJ+ZLL9F5hNjDqD4C7nlFFrdDaKeNIJ2cUem4=' 'sha256-lxHfHAe5I15v8qaArcZ5WiKmLU4CjV+3tJeQUqSIWBk='; connect-src 'self';">
|
||||
|
||||
<title>scripthash-ignore-unsafeinline</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
|
@ -22,7 +22,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
function make_assert(contentId) {
|
||||
var contentEl = document.getElementById(contentId);
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_true(marginLeftVal == "2px")
|
||||
assert_equals(marginLeftVal, "2px")
|
||||
}
|
||||
t.step(function() {
|
||||
make_assert("content1");
|
||||
|
|
|
@ -29,8 +29,8 @@
|
|||
function make_assert(contentId, assertTrue) {
|
||||
var contentEl = document.getElementById(contentId);
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
if (assertTrue) assert_true(marginLeftVal == "2px");
|
||||
else assert_false(marginLeftVal == "2px");
|
||||
if (assertTrue) assert_equals(marginLeftVal, "2px");
|
||||
else assert_not_equals(marginLeftVal, "2px");
|
||||
}
|
||||
|
||||
t1.step(function() {
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
function make_assert(contentId) {
|
||||
var contentEl = document.getElementById(contentId);
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_true(marginLeftVal == "2px")
|
||||
assert_equals(marginLeftVal, "2px")
|
||||
}
|
||||
t.step(function() {
|
||||
make_assert("content1");
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
t.step(function() {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_false(marginLeftVal == "2px")
|
||||
assert_not_equals(marginLeftVal, "2px")
|
||||
t.done();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
t.step(function() {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_false(marginLeftVal == "2px");
|
||||
assert_not_equals(marginLeftVal, "2px");
|
||||
t.done();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -23,9 +23,9 @@
|
|||
onload = t.step_func_done(function(e) {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_true(marginLeftVal == "2px");
|
||||
assert_equals(marginLeftVal, "2px");
|
||||
var marginRightVal = getComputedStyle(contentEl).getPropertyValue('margin-right');
|
||||
assert_true(marginRightVal == "2px");
|
||||
assert_equals(marginRightVal, "2px");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
// this is why in this test we check both to make sure neither way worked
|
||||
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_false(marginLeftVal == "2px");
|
||||
assert_not_equals(marginLeftVal, "2px");
|
||||
var marginRightVal = getComputedStyle(contentEl).getPropertyValue('margin-right');
|
||||
assert_false(marginRightVal == "2px");
|
||||
assert_not_equals(marginRightVal, "2px");
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
onload = t.step_func_done(function(e) {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_true(marginLeftVal == "2px");
|
||||
assert_equals(marginLeftVal, "2px");
|
||||
});
|
||||
|
||||
head.appendChild(link);
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
onload = t.step_func_done(function(e) {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_false(marginLeftVal == "2px");
|
||||
assert_not_equals(marginLeftVal, "2px");
|
||||
});
|
||||
|
||||
head.appendChild(link);
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
t.step(function() {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_true(marginLeftVal == "2px");
|
||||
assert_equals(marginLeftVal, "2px");
|
||||
t.done();
|
||||
}, "Inline style should not be applied");
|
||||
</script>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
onload = t.step_func_done(function(e) {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_true(marginLeftVal == "2px");
|
||||
assert_equals(marginLeftVal, "2px");
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
onload = t.step_func_done(function(e) {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_false(marginLeftVal == "2px");
|
||||
assert_not_equals(marginLeftVal, "2px");
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
t.step(function() {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_false(marginLeftVal == "2px");
|
||||
assert_not_equals(marginLeftVal, "2px");
|
||||
t.done();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
t.step(function() {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_true(marginLeftVal == "2px");
|
||||
assert_equals(marginLeftVal, "2px");
|
||||
t.done();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<script>
|
||||
function verifyStep1() {
|
||||
var marginLeft = getComputedStyle(document.querySelector("#content")).getPropertyValue('margin-left');
|
||||
assert_false(marginLeft == '2px', "Content still does not have a 2px margin-left after initial style.");
|
||||
assert_not_equals(marginLeft, '2px', "Content still does not have a 2px margin-left after initial style.");
|
||||
}
|
||||
|
||||
function setupStep2() {
|
||||
|
@ -39,7 +39,7 @@
|
|||
}
|
||||
function verifyStep2() {
|
||||
var marginLeft = getComputedStyle(document.querySelector("#content")).getPropertyValue('margin-left');
|
||||
assert_false(marginLeft == '2px', "Content still does not have a 2px margin-left after inserted style.");
|
||||
assert_not_equals(marginLeft, '2px', "Content still does not have a 2px margin-left after inserted style.");
|
||||
}
|
||||
|
||||
function setupStep3() {
|
||||
|
@ -48,7 +48,7 @@
|
|||
}
|
||||
function verifyStep3() {
|
||||
var marginLeft = getComputedStyle(document.querySelector("#content")).getPropertyValue('margin-left');
|
||||
assert_false(marginLeft == '2px', "Content still does not have a 2px margin-left after changing style.");
|
||||
assert_not_equals(marginLeft, '2px', "Content still does not have a 2px margin-left after changing style.");
|
||||
test.done();
|
||||
}
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
t.step(function() {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_false(marginLeftVal == "2px");
|
||||
assert_not_equals(marginLeftVal, "2px");
|
||||
t.done();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
t.step(function() {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_false(marginLeftVal == "2px");
|
||||
assert_not_equals(marginLeftVal, "2px");
|
||||
t.done();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
t.step(function() {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_true(marginLeftVal == "2px");
|
||||
assert_equals(marginLeftVal, "2px");
|
||||
t.done();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
t.step(function() {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_true(marginLeftVal == "2px");
|
||||
assert_equals(marginLeftVal, "2px");
|
||||
t.done();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
t.step(function() {
|
||||
var contentEl = document.getElementById("content");
|
||||
var marginLeftVal = getComputedStyle(contentEl).getPropertyValue('margin-left');
|
||||
assert_false(marginLeftVal == "2px");
|
||||
assert_not_equals(marginLeftVal, "2px");
|
||||
t.done();
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
}
|
||||
for (var i = 0; i < expected_alerts.length; i++) {
|
||||
if (expected_alerts[i] == msg) {
|
||||
assert_true(expected_alerts[i] == msg);
|
||||
assert_equals(expected_alerts[i], msg);
|
||||
expected_alerts.splice(i, 1);
|
||||
if (expected_alerts.length == 0) {
|
||||
t_alert.done();
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue