1111async def test_apply_full_change_should_work () -> None :
1212 text = """first"""
1313 new_text = """changed"""
14- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
14+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
1515 assert document .text () == text
1616
1717 document .apply_full_change (1 , new_text )
@@ -23,7 +23,7 @@ async def test_apply_full_change_should_work() -> None:
2323async def test_apply_apply_incremental_change_at_begining_should_work () -> None :
2424 text = """first"""
2525 new_text = """changed"""
26- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
26+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
2727 assert document .text () == text
2828
2929 document .apply_incremental_change (
@@ -38,7 +38,7 @@ async def test_apply_apply_incremental_change_at_end_should_work() -> None:
3838 text = """first"""
3939 new_text = """changed"""
4040
41- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
41+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
4242 assert document .text () == text
4343
4444 document .apply_incremental_change (
@@ -53,7 +53,7 @@ async def test_save_and_revert_should_work() -> None:
5353 text = """first"""
5454 new_text = """changed"""
5555
56- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
56+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
5757 assert document .text () == text
5858
5959 assert not document .revert (None )
@@ -93,7 +93,7 @@ async def test_apply_apply_incremental_change_in_the_middle_should_work() -> Non
9393second changed line
9494third"""
9595
96- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
96+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
9797 assert document .text () == text
9898
9999 document .apply_incremental_change (
@@ -111,7 +111,7 @@ async def test_apply_apply_incremental_change_with_start_line_eq_len_lines_shoul
111111third"""
112112 new_text = """changed """
113113
114- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
114+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
115115 assert document .text () == text
116116
117117 document .apply_incremental_change (
@@ -126,7 +126,7 @@ async def test_apply_apply_incremental_change_with_wrong_range_should_raise_inva
126126 text = """first"""
127127 new_text = """changed"""
128128
129- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
129+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
130130 assert document .text () == text
131131
132132 with pytest .raises (InvalidRangeError ):
@@ -139,7 +139,7 @@ async def test_apply_apply_incremental_change_with_wrong_range_should_raise_inva
139139async def test_apply_none_change_should_work () -> None :
140140 text = """first"""
141141
142- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
142+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
143143 assert document .text () == text
144144
145145 document .apply_none_change ()
@@ -155,7 +155,7 @@ async def test_lines_should_give_the_lines_of_the_document() -> None:
155155third
156156"""
157157
158- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
158+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
159159 assert document .text () == text
160160
161161 document .apply_none_change ()
@@ -177,7 +177,7 @@ class WeakReferencable:
177177 key = WeakReferencable ()
178178 data = "some data"
179179
180- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
180+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
181181 document .set_data (key , data )
182182
183183 assert document .get_data (key ) == data
@@ -202,7 +202,7 @@ async def test_document_get_set_cache_with_function_should_work() -> None:
202202 async def get_data (document : TextDocument , data : str ) -> str :
203203 return prefix + data
204204
205- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
205+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
206206
207207 assert await document .get_cache (get_data , "data" ) == "1data"
208208
@@ -228,7 +228,7 @@ async def test_document_get_set_cache_with_method_should_work() -> None:
228228second
229229third
230230"""
231- document = TextDocument (document_uri = "file://test.robot" , language_id = "robotframework" , version = 1 , text = text )
231+ document = TextDocument (document_uri = "file:/// test.robot" , language_id = "robotframework" , version = 1 , text = text )
232232
233233 prefix = "1"
234234
0 commit comments