treewide: Remove deprecated run_javascript()

#1497
This commit is contained in:
Cédric Bellegarde 2023-07-12 15:46:36 +02:00 committed by Niels De Graef
parent 952486c716
commit 98eb063398
6 changed files with 37 additions and 43 deletions

View file

@ -49,10 +49,10 @@ public abstract class Components.WebViewTestCase<V> : TestCase {
}
}
protected WebKit.JavascriptResult run_javascript(string command) throws Error {
protected JSC.Value? run_javascript(string command) throws Error {
WebView view = (WebView) this.test_view;
view.run_javascript.begin(command, null, this.async_completion);
return view.run_javascript.end(async_result());
view.evaluate_javascript.begin(command, -1, null, null, null, this.async_completion);
return view.evaluate_javascript.end(async_result());
}
}