mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Implement the TestUtils namespace from https://testutils.spec.whatwg.org/. This should make the `js/builtins/weakrefs` tests run faster and more consistently. This change will enable other WPT tests but no tests exist currently for TestUtils itself. Fixes: #36290 --------- Signed-off-by: Sebastian C <sebsebmc@gmail.com> Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
10 lines
366 B
Text
10 lines
366 B
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://testutils.spec.whatwg.org/
|
|
|
|
[Exposed=(Window,Worker), Pref="dom_testutils_enabled"]
|
|
namespace TestUtils {
|
|
[NewObject] Promise<undefined> gc();
|
|
};
|