mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision bf71b1f245ce34e447b7bde8ed46694574a63da7
This commit is contained in:
parent
7256d123ff
commit
e17a773b4e
35 changed files with 1567 additions and 467 deletions
|
@ -83,7 +83,7 @@ function test_feature_availability_with_post_message_result(
|
|||
// tests the feature availability and posts the result back to the parent.
|
||||
// Otherwise, does nothing.
|
||||
function test_feature_in_iframe(feature_name, feature_promise_factory) {
|
||||
if (location.hash.includes(feature_name)) {
|
||||
if (location.hash.endsWith(`#${feature_name}`)) {
|
||||
feature_promise_factory().then(
|
||||
() => window.parent.postMessage('#OK', '*'),
|
||||
(e) => window.parent.postMessage('#' + e.name, '*'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue