blob: 9e4e57884896c75e09c9ce5024a539c36d364b23 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
* This file is part of LibNSLayout's tests
* Licensed under the ISC License, http://opensource.org/licenses/ISC
* Copyright 2015 Michael Drake <tlsa@netsurf-browser.org>
*/
#include "../test/test-loader.c"
/*
* cd ../ && make && make install && cd dev/ && gcc `pkg-config libnslayout --cflags` main.c `pkg-config libnslayout --libs` && ./a.out ; cd ~/dev-netsurf/workspace/libnslayout/dev
*/
static void nsl_test_lwc_iterator(lwc_string *str, void *pw)
{
printf(" [%3u] %.*s\n", str->refcnt,
(int)lwc_string_length(str),
lwc_string_data(str));
}
int main(void)
{
nslayout_init();
test_loader("test-writing-mode.html", CSS_MEDIA_ALL, 15);
nslayout_fini();
printf("Remaining lwc strings:\n");
lwc_iterate_strings(nsl_test_lwc_iterator, NULL);
return EXIT_SUCCESS;
}
|