Jacek Caban (@jacek) commented about dlls/mshtml/tests/script.c:
+ trace("Running test_storage_events in %u mode...\n", document_mode); + + for(i = 0; i < ARRAY_SIZE(doc); i++) { + sprintf(index_html_data, + "<!DOCTYPE html>\n" + "<html>\n" + " <head>\n" + " <meta http-equiv=\"x-ua-compatible\" content=\"Ie=%u\">\n" + " <script src=\"winetest.js\" type=\"text/javascript\"></script>\n" + " <script type=\"text/javascript\">var tests = [ function() { next_test() } ];</script>\n" + " </head>\n" + " <body onload=\"run_tests();\">\n" + " </body>\n" + "</html>\n", document_mode); + + run_from_path(L"/index.html", "test_storage_events", &doc[i]); Is there any need for the test array and using run_from_path()? Also, is there anything interesting in testing more than two modes?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/795#note_7898