diff options
Diffstat (limited to 'dev')
-rw-r--r-- | dev/main.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -22,10 +22,23 @@ static void nsl_test_lwc_iterator(lwc_string *str, void *pw) int main(void) { + struct test_loader_buffer *buffer; + bool ok; + + ok = test_loader_load_path_to_buffer( + "test-writing-mode.html", + &buffer); + if (!ok) return EXIT_FAILURE; + nslayout_init(); - test_loader("test-writing-mode.html", CSS_MEDIA_ALL, 15); + + ok = test_loader(buffer, CSS_MEDIA_ALL, 15); + if (!ok) return EXIT_FAILURE; + nslayout_fini(); + test_loader_free_buffer(buffer); + printf("Remaining lwc strings:\n"); lwc_iterate_strings(nsl_test_lwc_iterator, NULL); |