Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: pages/exceptions/popup.tmpl

Issue 29755578: Issue 2148 - Rewrite the testpages test suite (Closed)
Patch Set: Created April 18, 2018, 11:54 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pages/exceptions/popup.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/pages/exceptions/popup.tmpl
@@ -0,0 +1,38 @@
+title = $popup Exception - ABP Test Pages
+template = testcase
+
+{% set testcase_moreinfo = [
+ ("Filter Options", "https://adblockplus.org/filters#options"),
+] %}
+
+<script>
+function do_popup()
+{
+ window.open("/en/exceptions/popup")
+}
+</script>
+
+<section class="site-panel">
+ <h2>$popup Exception</h2>
+ <p>Check that usage of the $popup filter option in an exception filter works as expected.</p>
+</section>
+
+<section class="site-panel">
+ <h2>Link-based popup</h2>
+ <div class="testcase-container">
+ <a href="/en/exceptions/popup" target="_blank">Link popup</a><br><br>
+ </div>
+ <h3>Filters</h3>
+ ||testpages.adblockplus.org/en/exceptions/popup^$popup<br>
+ @@||testpages.adblockplus.org/en/exceptions/popup^$popup
+</section>
+
+<section class="site-panel">
+ <h2>Script-based popup</h2>
+ <div class="testcase-container">
+ <button onclick="do_popup();">window.open() popup</button>
+ </div>
+ <h3>Filters</h3>
+ ||testpages.adblockplus.org/en/popuptarget^$popup
+ @@||testpages.adblockplus.org/en/filters/popup-exception^$popup
+</section>

Powered by Google App Engine
This is Rietveld