<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>169315</bug_id>
          
          <creation_ts>2017-03-07 15:21:50 -0800</creation_ts>
          <short_desc>Web Inspector: addition test coverage for DOM breakpoints</short_desc>
          <delta_ts>2017-03-07 22:36:41 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Inspector</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>168101</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Baker">mattbaker</reporter>
          <assigned_to name="Matt Baker">mattbaker</assigned_to>
          <cc>inspector-bugzilla-changes</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1284603</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2017-03-07 15:21:50 -0800</bug_when>
    <thetext>We should expand DOM breakpoint test coverage to include the following:

Bad protocol command input:
- DOMDebugger.setDOMBreakpoint with invalid nodeId
- DOMDebugger.setDOMBreakpoint with invalid type string
- DOMDebugger.removeDOMBreakpoint with invalid nodeId
- DOMDebugger.removeDOMBreakpoint with invalid type string

Manipulate the DOM while paused:
- Pause on a DOM &quot;node-removed&quot;, then move the Node being removed while paused, then continue
- Pause on a DOM &quot;subtree-modified&quot;, then modify the subtree again while paused, then continue
- Pause on a DOM &quot;attribute-modified&quot; for &quot;style&quot; attribute (this appears to have a different code path that is untested (InspectorDOMDebuggerAgent::didInvalidateStyleAttr))

Subframe breakpoints:
- Breakpoint should become unresolved when subframe removed
- Breakpoint should become unresolved then resolved when subframe resource reloaded
- Breakpoint should become unresolved then resolved when subframe removed from the DOM and reinserted

Misc:
- Should pause on a DOM &quot;subtree-modified&quot; when removing a Node from the subtree
- Should pause once if a parent has a &quot;subtree-modified&quot; breakpoint, a child has a &quot;node-removed&quot; breakpoint, and the child is removed (the node-removed breakpoint should be the expected pause reason)
- A Node with all possible breakpoint types (&quot;node-removed&quot;, &quot;subtree-modified&quot;, &quot;attribute-modified&quot;)
- Pause on a regular breakpoint, then continue through code that would trigger a DOM breakpoint</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>