mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision 0a518aaff73532a26e175789f7e75fa99593ac64
This commit is contained in:
parent
9c172f49d0
commit
abcd4b654f
92 changed files with 2869 additions and 642 deletions
|
@ -1,5 +1,9 @@
|
|||
// note, this template substitution is XSS, but no way to avoid it in this framework
|
||||
var expected_logs = {{GET[logs]}};
|
||||
var timeout = "{{GET[timeout]}}";
|
||||
if (timeout == "") {
|
||||
timeout = 2;
|
||||
}
|
||||
|
||||
if (expected_logs.length == 0) {
|
||||
function log_assert(msg) {
|
||||
|
@ -7,6 +11,12 @@ if (expected_logs.length == 0) {
|
|||
}
|
||||
} else {
|
||||
var t_log = async_test('Expecting logs: {{GET[logs]}}');
|
||||
setTimeout(function() {
|
||||
if(t_log.phase != t_log.phases.COMPLETE){
|
||||
t_log.step(function () { assert_unreached('Logging timeout, expected logs ' + expected_logs + ' not sent.') });
|
||||
t_log.done();
|
||||
}
|
||||
}, timeout * 1000);
|
||||
function log(msg) {
|
||||
//cons/**/ole.log(msg);
|
||||
t_log.step(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue