<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [GTK] Add function webkit_dom_element_get_bounding_client_rect"
href="https://bugs.webkit.org/show_bug.cgi?id=163892#c21">Comment # 21</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [GTK] Add function webkit_dom_element_get_bounding_client_rect"
href="https://bugs.webkit.org/show_bug.cgi?id=163892">bug 163892</a>
from <span class="vcard"><a class="email" href="mailto:cgarcia@igalia.com" title="Carlos Garcia Campos <cgarcia@igalia.com>"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=163892#c20">comment #20</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=163892#c19">comment #19</a>)
> > Look at the examples I mentioned above. You need to add two files
> > TestDOMFoo.cpp and DOMFooTest.cpp. The former is the test file that runs in
> > the UI process, it adds the tests cases that normally just load some html
> > and then tun the web process test simply calling
> > WebViewTest::runWebProcessTest(). The latter is the test itself that runs in
> > the web process. You have to add a class derived from WebProcessTest with a
> > method for very tests case and override runTest that dispatches the test
> > cases. To register the tests we use a lib constructor that uses the macro
> > REGISTER_TEST.
>
> Thanks for the guidelines; seems pretty straightforward. Is there any way to
> run only the WebKitDOM tests while I develop?</span >
Yes, run-gtk-tests allows to run individual tests, you just need to pass the path to the test, for example:
Tools/Scripts/run-gtk-tests --verbose WebKitBuild/Release/bin/TestWebKitAPI/WebKit2Gtk/TestDOMNode
<span class="quote">> Separately, is it alright to keep tests for both ClientRect and
> ClientRectList in the same pair of files? Or should I separate them?</span >
It's ok to use the same file with two different test cases for example.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>