Skip to content

Commit

Permalink
Improved HTML testing files.
Browse files Browse the repository at this point in the history
  • Loading branch information
William Troup committed Jan 8, 2024
1 parent d3b9fb2 commit 5b80542
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
10 changes: 9 additions & 1 deletion test/dist/observe.js.basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,19 @@ <h2>Pause Watch:</h2>
<button onclick="$observe.pauseWatch( 'domElementWatch1', 10000 );">Pause Watch - DOM Element</button>
<br />

<h2>Pause Watches:</h2>
<button onclick="$observe.pauseWatches( 10000 );">Pause Watches</button>
<br />

<h2>Resume Watch:</h2>
<button onclick="$observe.resumeWatch( watchId, 10000 );">Resume Watch</button>
<button onclick="$observe.resumeWatch( watchId );">Resume Watch</button>
<button onclick="$observe.resumeWatch( 'domElementWatch1' );">Resume Watch - DOM Element</button>
<br />

<h2>Resume Watches:</h2>
<button onclick="$observe.resumeWatches();">Resume Watches</button>
<br />

<h2>Get Watch:</h2>
<button onclick="console.log( $observe.getWatch( watchId ) );">Get Watch - 1</button>
<button onclick="console.log( $observe.getWatch( 'domElementWatch1' ) );">Get Watch - 2 (DOM)</button>
Expand Down
10 changes: 9 additions & 1 deletion test/dist/observe.js.min.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,19 @@ <h2>Pause Watch:</h2>
<button onclick="$observe.pauseWatch( 'domElementWatch1', 10000 );">Pause Watch - DOM Element</button>
<br />

<h2>Pause Watches:</h2>
<button onclick="$observe.pauseWatches( 10000 );">Pause Watches</button>
<br />

<h2>Resume Watch:</h2>
<button onclick="$observe.resumeWatch( watchId, 10000 );">Resume Watch</button>
<button onclick="$observe.resumeWatch( watchId );">Resume Watch</button>
<button onclick="$observe.resumeWatch( 'domElementWatch1' );">Resume Watch - DOM Element</button>
<br />

<h2>Resume Watches:</h2>
<button onclick="$observe.resumeWatches();">Resume Watches</button>
<br />

<h2>Get Watch:</h2>
<button onclick="console.log( $observe.getWatch( watchId ) );">Get Watch - 1</button>
<button onclick="console.log( $observe.getWatch( 'domElementWatch1' ) );">Get Watch - 2 (DOM)</button>
Expand Down
10 changes: 9 additions & 1 deletion test/src/observe.js.basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,19 @@ <h2>Pause Watch:</h2>
<button onclick="$observe.pauseWatch( 'domElementWatch1', 10000 );">Pause Watch - DOM Element</button>
<br />

<h2>Pause Watches:</h2>
<button onclick="$observe.pauseWatches( 10000 );">Pause Watches</button>
<br />

<h2>Resume Watch:</h2>
<button onclick="$observe.resumeWatch( watchId, 10000 );">Resume Watch</button>
<button onclick="$observe.resumeWatch( watchId );">Resume Watch</button>
<button onclick="$observe.resumeWatch( 'domElementWatch1' );">Resume Watch - DOM Element</button>
<br />

<h2>Resume Watches:</h2>
<button onclick="$observe.resumeWatches();">Resume Watches</button>
<br />

<h2>Get Watch:</h2>
<button onclick="console.log( $observe.getWatch( watchId ) );">Get Watch - 1</button>
<button onclick="console.log( $observe.getWatch( 'domElementWatch1' ) );">Get Watch - 2 (DOM)</button>
Expand Down

0 comments on commit 5b80542

Please sign in to comment.