mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Update web-platform-tests to revision 7a767a52741f628430ffbbed46e7f3df68ba3534
Fixes #15648.
This commit is contained in:
parent
a1e4c547f0
commit
4fadf9b0b6
1184 changed files with 22551 additions and 9856 deletions
|
@ -644,8 +644,10 @@ Runner.prototype = {
|
|||
return this.manifest[this.mTestCount];
|
||||
},
|
||||
|
||||
open_test_window: function() {
|
||||
this.test_window = window.open("about:blank", 800, 600);
|
||||
ensure_test_window: function() {
|
||||
if (!this.test_window || this.test_window.location === null) {
|
||||
this.test_window = window.open("about:blank", 800, 600);
|
||||
}
|
||||
},
|
||||
|
||||
manifest_loaded: function() {
|
||||
|
@ -666,6 +668,7 @@ Runner.prototype = {
|
|||
this.manifest_iterator = new ManifestIterator(this.manifest, this.path, this.test_types, this.use_regex);
|
||||
this.num_tests = null;
|
||||
|
||||
this.ensure_test_window();
|
||||
if (this.manifest.data === null) {
|
||||
this.wait_for_manifest();
|
||||
} else {
|
||||
|
@ -682,7 +685,6 @@ Runner.prototype = {
|
|||
|
||||
do_start: function() {
|
||||
if (this.manifest_iterator.count() > 0) {
|
||||
this.open_test_window();
|
||||
this.start_callbacks.forEach(function(callback) {
|
||||
callback();
|
||||
});
|
||||
|
@ -727,6 +729,7 @@ Runner.prototype = {
|
|||
this.done_flag = true;
|
||||
if (this.test_window) {
|
||||
this.test_window.close();
|
||||
this.test_window = undefined;
|
||||
}
|
||||
this.done_callbacks.forEach(function(callback) {
|
||||
callback();
|
||||
|
@ -758,9 +761,7 @@ Runner.prototype = {
|
|||
},
|
||||
|
||||
load: function(path) {
|
||||
if (this.test_window.location === null) {
|
||||
this.open_test_window();
|
||||
}
|
||||
this.ensure_test_window();
|
||||
this.test_window.location.href = this.server + path;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue