mirror of
https://github.com/servo/servo
synced 2026-04-27 09:57:23 +02:00
script: Remove some proprietary Servo-only testing methods from Window (#42728)
These three methods date back from the very early history of Servo and
are no longer necessary:
1. `Window.debug`: `console.log` is a better replacement for this method
now. A manual test that tests the very basics of JavaScript used
this. This test is removed as well.
2. `Window.gc`: This can be replaced with `TestUtils.gc`, which is part
of a W3C specification.
3. `Window.js_backtrace`: This method is moved to `ServoTestUtils`.
Testing: Tests are updated to reflect these changes.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
@@ -17,7 +17,6 @@ use js::realm::CurrentRealm;
|
||||
use js::rust::{CustomAutoRooterGuard, HandleObject, HandleValue, MutableHandleValue};
|
||||
use js::typedarray::{self, HeapUint8ClampedArray};
|
||||
use script_bindings::cformat;
|
||||
use script_bindings::codegen::GenericBindings::WindowBinding::WindowMethods;
|
||||
use script_bindings::interfaces::TestBindingHelpers;
|
||||
use script_bindings::record::Record;
|
||||
use servo_config::prefs;
|
||||
@@ -569,7 +568,7 @@ impl TestBindingMethods<crate::DomTypeHolder> for TestBinding {
|
||||
&self,
|
||||
_dictionary: RootedTraceableBox<TestDictionaryWithTypedArray>,
|
||||
) {
|
||||
self.global().as_window().Gc();
|
||||
self.global().as_window().gc();
|
||||
}
|
||||
fn ReceiveTestDictionaryWithSuccessOnKeyword(&self) -> RootedTraceableBox<TestDictionary> {
|
||||
RootedTraceableBox::new(TestDictionary {
|
||||
|
||||
Reference in New Issue
Block a user