commit e6973e59747dd61e43696c15add39a07093cfa0d
parent 7a33acafd0e7437842122f26e35f9823e87ca747
Author: Adam Vandolder <avandolder@mozilla.com>
Date: Tue, 18 Nov 2025 16:12:13 +0000
Bug 2000647 - Fix format and linter warnings for dom/base/test/mochitest.toml. r=dom-core,smaug
Differential Revision: https://phabricator.services.mozilla.com/D272895
Diffstat:
1 file changed, 133 insertions(+), 99 deletions(-)
diff --git a/dom/base/test/mochitest.toml b/dom/base/test/mochitest.toml
@@ -210,18 +210,22 @@ support-files = [
"green.png",
"slow.sjs",
]
-skip-if = ["os == 'linux' && os_version == '24.04' && arch == 'x86_64' && debug && verify-standalone"]
+skip-if = [
+ "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && debug && verify-standalone",
+]
["test_EventSource_redirects.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_Image_constructor.html"]
["test_NodeIterator_basics_filters.xhtml"]
-skip-if = ["xorigin"] # JavaScript error: http://mochi.test:8888/tests/SimpleTest/SimpleTest.js, line 76: DataCloneError: The object could not be cloned.
+skip-if = [
+ "xorigin", # JavaScript error: http://mochi.test:8888/tests/SimpleTest/SimpleTest.js, line 76: DataCloneError: The object could not be cloned.
+]
["test_NodeIterator_mutations_1.xhtml"]
@@ -231,26 +235,26 @@ skip-if = ["xorigin"] # JavaScript error: http://mochi.test:8888/tests/SimpleTes
["test_anchor_area_referrer.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_anchor_area_referrer_changing.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_anchor_area_referrer_invalid.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_anchor_area_referrer_rel.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_anonymousContent_api.html"]
@@ -260,7 +264,7 @@ skip-if = [
["test_anonymousContent_canvas.html"]
skip-if = [
"headless", # Bug 1405867
- "os == 'android' && processor == 'x86_64' && debug", # Bug 1908272
+ "os == 'android' && arch == 'x86_64' && debug", # Bug 1908272
]
["test_anonymousContent_insert.html"]
@@ -275,8 +279,8 @@ skip-if = [
["test_base.xhtml"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug5141.html"]
@@ -288,7 +292,9 @@ skip-if = [
["test_bug51034.html"]
["test_bug166235.html"]
-skip-if = ["headless"] # headless != clipboard
+skip-if = [
+ "headless", # headless != clipboard
+]
["test_bug199959.html"]
@@ -322,8 +328,8 @@ skip-if = ["headless"] # headless != clipboard
["test_bug326337.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug331959.html"]
@@ -340,16 +346,16 @@ skip-if = [
["test_bug338583.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug343596.html"]
["test_bug345339.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug346485.html"]
@@ -397,9 +403,9 @@ support-files = ["file_bug357450.js"]
["test_bug375314-2.html"]
skip-if = [
- "xorigin", # Hangs, [Exception... "Component returned failure code: 0xc1f30100 (NS_ERROR_FACTORY_EXISTS) [nsIComponentRegistrar.registerFactory]" nsresult: "0xc1f30100 (NS_ERROR_FACTORY_EXISTS)" location: "JS frame :: createChromeScript :: createChromeScript :: line 40" data: no]
- "http3",
"http2",
+ "http3",
+ "xorigin", # Hangs, [Exception... "Component returned failure code: 0xc1f30100 (NS_ERROR_FACTORY_EXISTS) [nsIComponentRegistrar.registerFactory]" nsresult: "0xc1f30100 (NS_ERROR_FACTORY_EXISTS)" location: "JS frame :: createChromeScript :: createChromeScript :: line 40" data: no]
]
["test_bug375314.html"]
@@ -431,8 +437,8 @@ support-files = ["test_bug380418.html^headers^"]
["test_bug398243.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug402150.html"]
@@ -476,28 +482,28 @@ support-files = ["test_bug402150.html^headers^"]
["test_bug422537.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug424212.html"]
["test_bug426308.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug426646.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug428847.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug431082.html"]
@@ -512,8 +518,8 @@ skip-if = [
["test_bug435425.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug444322.html"]
@@ -542,8 +548,8 @@ support-files = ["bug444546.sjs"]
["test_bug455629.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug456262.html"]
@@ -556,16 +562,16 @@ skip-if = [
["test_bug461735.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug465767.html"]
["test_bug466080.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug466409.html"]
@@ -582,8 +588,8 @@ skip-if = [
["test_bug475156.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug482935.html"]
@@ -612,14 +618,16 @@ support-files = ["file_bug503473-frame.sjs"]
["test_bug503481b.html"]
["test_bug513194.html"]
-skip-if = ["verify-standalone"]
+skip-if = [
+ "verify-standalone",
+]
["test_bug514487.html"]
["test_bug515401.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug518104.html"]
@@ -660,7 +668,9 @@ support-files = ["file_bug518104.js"]
["test_bug567350.html"]
["test_bug574596.html"]
-skip-if = ["os == 'android'"]
+skip-if = [
+ "os == 'android'",
+]
["test_bug578096.html"]
@@ -672,15 +682,15 @@ skip-if = ["os == 'android'"]
["test_bug590812.html"]
skip-if = [
- "http3",
"http2",
- "os == 'win' && os_version == '11.26100' && processor == 'x86_64'", # Bug 1936460
+ "http3",
+ "os == 'win' && os_version == '11.26100' && arch == 'x86_64'", # Bug 1936460
]
["test_bug590870.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug592366.html"]
@@ -691,16 +701,16 @@ skip-if = [
["test_bug599295.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug599588.html"]
["test_bug601803.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug602838.html"]
@@ -733,8 +743,8 @@ support-files = ["!/gfx/layers/apz/test/mochitest/apz_test_utils.js"]
["test_bug638112.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug647518.html"]
@@ -779,14 +789,14 @@ skip-if = [
["test_bug696301-1.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug696301-2.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug698381.html"]
@@ -797,28 +807,28 @@ skip-if = [
["test_bug704320-1.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug704320-2.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug704320_policyset.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug704320_policyset2.html"]
["test_bug704320_preload.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug707142.html"]
@@ -873,8 +883,8 @@ skip-if = [
["test_bug819051.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug820909.html"]
@@ -899,8 +909,8 @@ skip-if = [
["test_bug907892.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug913761.html"]
@@ -913,8 +923,8 @@ skip-if = [
["test_bug976673.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug982153.html"]
@@ -923,8 +933,8 @@ skip-if = [
["test_bug1022229.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug1025933.html"]
@@ -946,16 +956,20 @@ support-files = ["test_bug1037687_subframe.html"]
["test_bug1091883.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug1100912.html"]
support-files = ["file_bug1100912.html"]
-skip-if = ["os == 'linux' && os_version == '24.04' && processor == 'x86_64' && display == 'x11'"]
+skip-if = [
+ "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11'",
+]
["test_bug1101364.html"]
-skip-if = ["os == 'linux' && os_version == '24.04' && processor == 'x86_64' && display == 'x11'"]
+skip-if = [
+ "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11'",
+]
["test_bug1118689.html"]
@@ -963,14 +977,14 @@ skip-if = ["os == 'linux' && os_version == '24.04' && processor == 'x86_64' && d
["test_bug1163743.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug1165501.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug1187157.html"]
@@ -979,14 +993,14 @@ skip-if = [
["test_bug1222633.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug1222633_link_update.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug1238440.html"]
@@ -997,8 +1011,8 @@ skip-if = [
["test_bug1268962.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug1274806.html"]
@@ -1027,14 +1041,16 @@ skip-if = [
["test_bug1433073.html"]
skip-if = [
- "os == 'android'",
"headless",
+ "os == 'android'",
]
["test_bug1472427.html"]
["test_bug1499169.html"]
-skip-if = ["os == 'android'"] # Timeouts on android due to page closing issues with embedded pdf
+skip-if = [
+ "os == 'android'", # Timeouts on android due to page closing issues with embedded pdf
+]
["test_bug1576154.html"]
@@ -1049,8 +1065,8 @@ support-files = [
"iframe2_bug1640766.html",
]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_bug1648887.html"]
@@ -1070,8 +1086,8 @@ support-files = ["bug1739957.sjs"]
["test_change_policy.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_clearTimeoutIntervalNoArg.html"]
@@ -1094,8 +1110,8 @@ skip-if = [
["test_current_inner_window.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_custom_element.html"]
@@ -1107,7 +1123,9 @@ skip-if = [
["test_data_uri.html"]
["test_delazification_strategy.html"]
-skip-if = ["ccov"]
+skip-if = [
+ "ccov",
+]
support-files = [
"file_delazification_strategy.html",
"file_delazification_strategy.js",
@@ -1126,8 +1144,8 @@ support-files = [
["test_document_wireframe.html"]
skip-if = [
"!sessionHistoryInParent",
- "http3",
"http2",
+ "http3",
]
["test_domparser_null_char.html"]
@@ -1135,7 +1153,9 @@ skip-if = [
["test_domparsing.html"]
["test_domwindowutils.html"]
-skip-if = ["os == 'android'"] # Bug 1525959
+skip-if = [
+ "os == 'android'", # Bug 1525959
+]
["test_drag_drop_shadow_crossing_selection.html"]
@@ -1147,30 +1167,30 @@ skip-if = ["os == 'android'"] # Bug 1525959
["test_embed_xorigin_document.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_eventsource_event_listener_leaks.html"]
["test_eventsourceservice_basic.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_eventsourceservice_reconnect_error.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_eventsourceservice_status_error.html"]
["test_eventsourceservice_worker.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_explicit_user_agent.html"]
@@ -1189,14 +1209,14 @@ support-files = ["file_focus_design_mode_inner.html"]
["test_focus_display_none_xorigin_iframe.html"]
support-files = ["file_focus_display_none_xorigin_iframe_inner.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_focus_keyboard_event.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_focus_radio.html"]
@@ -1237,20 +1257,20 @@ skip-if = [
["test_iframe_referrer.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_iframe_referrer_changing.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_iframe_referrer_invalid.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_innersize_scrollport.html"]
@@ -1265,46 +1285,48 @@ skip-if = [
["test_intersectionobservers.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_link_prefetch.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_link_preload.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_link_stylesheet.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_location_href_unknown_protocol.html"]
support-files = ["file_location_href_unknown_protocol.html"]
["test_lock_orientation_after_fullscreen.html"]
-run-if = ["os == 'android'"] # Only run on Android.
+run-if = [
+ "os == 'android'", # Only run on Android.
+]
["test_lock_orientation_with_pending_fullscreen.html"]
skip-if = [
- "os == 'mac' && os_version == '10.15' && processor == 'x86_64'",
- "os == 'linux'",
"headless",
- "os == 'mac' && os_version == '14.70' && processor == 'x86_64'", # Bug 1929448
+ "os == 'linux'",
+ "os == 'mac' && os_version == '10.15' && arch == 'x86_64'",
+ "os == 'mac' && os_version == '14.70' && arch == 'x86_64'", # Bug 1929448
]
["test_meta_refresh_referrer.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_mozMatchesSelector.html"]
@@ -1319,8 +1341,8 @@ skip-if = [
["test_navigator_cookieEnabled.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_navigator_hardwareConcurrency.html"]
@@ -1332,7 +1354,9 @@ skip-if = [
["test_nodelist_holes.html"]
["test_omt_eager_baseline.html"]
-skip-if = ["ccov"]
+skip-if = [
+ "ccov",
+]
support-files = [
"file_omt_eager_baseline.html",
"file_omt_eager_baseline.js"
@@ -1344,7 +1368,9 @@ tags = "openwindow"
["test_open_null_features.html"]
["test_pasting_svg_image.html"]
-skip-if = ["headless"] # Bug 1669923.
+skip-if = [
+ "headless", # Bug 1669923.
+]
["test_pdf_print.html"]
skip-if = [
@@ -1356,12 +1382,14 @@ skip-if = [
["test_postMessage_originAttributes.html"]
support-files = ["file_receiveMessage.html"]
-skip-if = ["true"] # Uses mismatched OriginAttributes for iframe (bug 1616353)
+skip-if = [
+ "true", # Uses mismatched OriginAttributes for iframe (bug 1616353)
+]
["test_postMessage_solidus.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_postMessages_broadcastChannel.html"]
@@ -1370,8 +1398,8 @@ skip-if = [
["test_postMessages_window.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_postMessages_workers.html"]
@@ -1379,7 +1407,9 @@ skip-if = [
["test_processing_instruction_update_stylesheet.xhtml"]
["test_progress_events_for_gzip_data.html"]
-skip-if = ["tsan"] # Bug 1621323
+skip-if = [
+ "tsan", # Bug 1621323
+]
["test_pushState_structuredclone.html"]
scheme = "https"
@@ -1402,7 +1432,9 @@ support-files = ["file_sandbox_and_document_uri.html"]
["test_setInterval_from_start.html"]
["test_setInterval_uncatchable_exception.html"]
-skip-if = ["debug == false"]
+skip-if = [
+ "debug == false",
+]
["test_setTimeoutWith0.html"]
@@ -1414,14 +1446,14 @@ skip-if = ["debug == false"]
["test_shared_compartment1.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_shared_compartment2.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_structuredclone_backref.html"]
@@ -1435,9 +1467,9 @@ support-files = ["file_suppressed_events_and_scrolling.html"]
["test_suppressed_events_nested_iframe.html"]
skip-if = [
- "os == 'android'",
- "http3",
"http2",
+ "http3",
+ "os == 'android'",
]
support-files = [
"file_suppressed_events_top_xhr.html",
@@ -1450,10 +1482,10 @@ support-files = [
["test_suppressed_microtasks.html"]
skip-if = [
- "debug",
"asan",
- "tsan",
+ "debug",
"os == 'android'", # The test needs to run reasonably fast.
+ "tsan",
]
["test_text-fragments-create-text-directive-no-reveal.html"]
@@ -1481,7 +1513,9 @@ support-files = ["file_toScreenRect.html"]
["test_treewalker_nextsibling.xml"]
["test_user_select.html"]
-skip-if = ["os == 'android'"] # Bug 1791049
+skip-if = [
+ "os == 'android'", # Bug 1791049
+]
["test_viewport_metrics_on_landscape_content.html"]
support-files = ["file_viewport_metrics_on_landscape_content.html"]
@@ -1498,9 +1532,9 @@ support-files = ["file_viewport_metrics_on_landscape_content.html"]
["test_warning_for_blocked_cross_site_request.html"]
skip-if = [
+ "debug && verify-standalone",
"http2",
"http3",
- "debug && verify-standalone",
]
["test_window_close.html"]
@@ -1511,8 +1545,8 @@ skip-if = [
["test_window_cross_origin_props.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_window_define_nonconfigurable.html"]
@@ -1534,8 +1568,8 @@ support-files = ["file_window_focus_by_close_and_open.html"]
["test_window_named_frame_enumeration.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
]
["test_window_own_props.html"]
@@ -1546,16 +1580,16 @@ skip-if = [
["test_x-frame-options.html"]
skip-if = [
+ "http2",
+ "http3",
"os == 'android' && debug",
"xorigin", # JavaScript error: http://mochi.test:8888/tests/dom/base/test/test_x-frame-options.html, line 48: TypeError: can't access property "textContent", this.content.document.getElementById(...) is null, JavaScript error: resource://gre/modules/ProcessSelector.jsm, line 56: TypeError: can't access property "tabCount", process is null
- "http3",
- "http2",
]
["test_youtube_flash_embed.html"]
skip-if = [
- "http3",
"http2",
+ "http3",
"os == 'linux' && debug", # Bug 1870499 and other bugs with crashes after this test start
]
# Please keep alphabetical order.