mirror of
https://github.com/servo/servo.git
synced 2025-08-18 03:45:33 +01:00
webdriver: Implement send alert text (#38140)
Implement webdriver `SendAlertText` command Tests: https://github.com/longvatrong111/servo/actions/runs/16342669929 https://github.com/longvatrong111/servo/actions/runs/16342671477 cc: @xiaochengh --------- Signed-off-by: batu_hoang <hoang.binh.trong@huawei.com> Signed-off-by: batu_hoang <longvatrong111@gmail.com>
This commit is contained in:
parent
3ce95b2ba5
commit
f0e10e63e2
10 changed files with 91 additions and 46 deletions
|
@ -168,6 +168,12 @@ impl Dialog {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn set_message(&mut self, text: String) {
|
||||
if let Dialog::SimpleDialog(dialog) = self {
|
||||
dialog.set_message(text);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn update(&mut self, ctx: &egui::Context) -> bool {
|
||||
match self {
|
||||
Dialog::File {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue