From ad91c6e46152cbf3f22e3953ea3714b0803a2bb3 Mon Sep 17 00:00:00 2001 From: atbrakhi Date: Wed, 27 Aug 2025 10:15:02 +0200 Subject: [PATCH] devtools: Fix `test_source_breakable_lines_and_positions_with_functions` (#38964) In #38933 we removed `start_web_server` but `test_source_breakable_lines_and_positions_with_functions` was not updated because it was added later. In this patch we remove `start_web_server` in that test as well. Testing: fixes an existing test Fixes: Part of #36325 Signed-off-by: atbrakhi Co-authored-by: delan azabani --- python/servo/devtools_tests.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/python/servo/devtools_tests.py b/python/servo/devtools_tests.py index 9b7aac28ad3..5cb1debbbd0 100644 --- a/python/servo/devtools_tests.py +++ b/python/servo/devtools_tests.py @@ -669,10 +669,11 @@ class DevtoolsTests(unittest.IsolatedAsyncioTestCase): ) def test_source_breakable_lines_and_positions_with_functions(self): - self.start_web_server(test_dir=self.get_test_path("sources_breakable_lines_and_positions")) - self.run_servoshell(url=f"{self.base_urls[0]}/test_with_functions.html") + self.run_servoshell(url=f"{self.base_urls[0]}/sources_breakable_lines_and_positions/test_with_functions.html") self.assert_source_breakable_lines_and_positions( - Source("inlineScript", f"{self.base_urls[0]}/test_with_functions.html"), + Source( + "inlineScript", f"{self.base_urls[0]}/sources_breakable_lines_and_positions/test_with_functions.html" + ), [5, 6, 7, 8, 9, 10], { "5": [8, 18],