comparison dwtest.c @ 2084:524cb235a555

Added window.navigator.userAgent to dwtest javascript test. This shows how to get more detailed engine information on platforms that support dw_html_javascript_run(). Might need a way to indicate that DW_SIGNAL_HTML_RESULT is supported in dw_environment_query() since webkitgtk does not support the callback to get the result only webkit2gtk.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 02 Jun 2020 18:35:53 +0000
parents 24875681eec5
children 0c7de37977c8
comparison
equal deleted inserted replaced
2083:f1acc157b2dd 2084:524cb235a555
1848 HWND item; 1848 HWND item;
1849 HWND javascript = dw_combobox_new("", 0); 1849 HWND javascript = dw_combobox_new("", 0);
1850 1850
1851 dw_listbox_append(javascript, "window.scrollTo(0,500);"); 1851 dw_listbox_append(javascript, "window.scrollTo(0,500);");
1852 dw_listbox_append(javascript, "window.document.title;"); 1852 dw_listbox_append(javascript, "window.document.title;");
1853 dw_listbox_append(javascript, "window.navigator.userAgent;");
1853 1854
1854 dw_box_pack_start( notebookbox7, rawhtml, 0, 100, TRUE, FALSE, 0); 1855 dw_box_pack_start( notebookbox7, rawhtml, 0, 100, TRUE, FALSE, 0);
1855 dw_html_raw(rawhtml, "<html><body><center><h1>dwtest</h1></center></body></html>"); 1856 dw_html_raw(rawhtml, "<html><body><center><h1>dwtest</h1></center></body></html>");
1856 html = dw_html_new(1002); 1857 html = dw_html_new(1002);
1857 1858