<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&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <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">&gt; (In reply to <a href="show_bug.cgi?id=163892#c19">comment #19</a>)
&gt; &gt; Look at the examples I mentioned above. You need to add two files
&gt; &gt; TestDOMFoo.cpp and DOMFooTest.cpp. The former is the test file that runs in
&gt; &gt; the UI process, it adds the tests cases that normally just load some html
&gt; &gt; and then tun the web process test simply calling
&gt; &gt; WebViewTest::runWebProcessTest(). The latter is the test itself that runs in
&gt; &gt; the web process. You have to add a class derived from WebProcessTest with a
&gt; &gt; method for very tests case and override runTest that dispatches the test
&gt; &gt; cases. To register the tests we use a lib constructor that uses the macro
&gt; &gt; REGISTER_TEST.
&gt; 
&gt; Thanks for the guidelines; seems pretty straightforward. Is there any way to
&gt; 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">&gt; Separately, is it alright to keep tests for both ClientRect and
&gt; 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>