forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lint issues from Mozilla upstreaming
- Loading branch information
Showing
11 changed files
with
62 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
service-workers/service-worker/resources/invalid-chunked-encoding-with-flush.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
self.onmessage = function (evt) { | ||
if (evt.data == "xhr") { | ||
var xhr = new XMLHttpRequest(); | ||
xhr.open("GET", "synthesized-response.txt", true); | ||
xhr.responseType = "text"; | ||
xhr.send(); | ||
xhr.onload = function (evt) { | ||
postMessage(xhr.responseText); | ||
}; | ||
xhr.onerror = function() { | ||
postMessage("XHR failed!"); | ||
}; | ||
var xhr = new XMLHttpRequest(); | ||
xhr.open("GET", "synthesized-response.txt", true); | ||
xhr.responseType = "text"; | ||
xhr.send(); | ||
xhr.onload = function (evt) { | ||
postMessage(xhr.responseText); | ||
}; | ||
xhr.onerror = function() { | ||
postMessage("XHR failed!"); | ||
}; | ||
} else if (evt.data == "fetch") { | ||
fetch("synthesized-response.txt") | ||
.then(function(response) { | ||
return response.text(); | ||
fetch("synthesized-response.txt") | ||
.then(function(response) { | ||
return response.text(); | ||
}) | ||
.then(function(data) { | ||
postMessage(data); | ||
.then(function(data) { | ||
postMessage(data); | ||
}) | ||
.catch(function(error) { | ||
postMessage("Fetch failed!"); | ||
}); | ||
.catch(function(error) { | ||
postMessage("Fetch failed!"); | ||
}); | ||
} else if (evt.data == "importScripts") { | ||
importScripts("synthesized-response.js"); | ||
importScripts("synthesized-response.js"); | ||
} else { | ||
throw "Unexpected message! " + evt.data; | ||
throw "Unexpected message! " + evt.data; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
<!DOCTYPE html> | ||
<meta charset=utf-8> | ||
<title>direction tests</title> | ||
<link rel="help" href="https://w3c.github.io/web-animations/#dom-animationeffecttiming-direction"> | ||
<link rel="author" title="Ryo Kato" href="mailto:foobar094@gmail.com"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../testcommon.js"></script> | ||
<link rel="stylesheet" href="/resources/testharness.css"> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
test(function(t) { | ||
var div = createDiv(t); | ||
var anim = div.animate({ opacity: [ 0, 1 ] }, 2000); | ||
|
||
var directions = ['normal', 'reverse', 'alternate', 'alternate-reverse']; | ||
directions.forEach(function(direction) { | ||
anim.effect.timing.direction = direction; | ||
assert_equals(anim.effect.timing.direction, direction, | ||
'set direction to ' + direction); | ||
}); | ||
}, 'set direction to a valid keyword'); | ||
|
||
</script> | ||
</body> | ||
<!DOCTYPE html> | ||
<meta charset=utf-8> | ||
<title>direction tests</title> | ||
<link rel="help" href="https://w3c.github.io/web-animations/#dom-animationeffecttiming-direction"> | ||
<link rel="author" title="Ryo Kato" href="mailto:foobar094@gmail.com"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="../testcommon.js"></script> | ||
<link rel="stylesheet" href="/resources/testharness.css"> | ||
<body> | ||
<div id="log"></div> | ||
<script> | ||
'use strict'; | ||
|
||
test(function(t) { | ||
var div = createDiv(t); | ||
var anim = div.animate({ opacity: [ 0, 1 ] }, 2000); | ||
|
||
var directions = ['normal', 'reverse', 'alternate', 'alternate-reverse']; | ||
directions.forEach(function(direction) { | ||
anim.effect.timing.direction = direction; | ||
assert_equals(anim.effect.timing.direction, direction, | ||
'set direction to ' + direction); | ||
}); | ||
}, 'set direction to a valid keyword'); | ||
|
||
</script> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters