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

Unified Diff: pages/filters/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/filters/popup.tmpl
===================================================================
new file mode 100644
--- /dev/null
+++ b/pages/filters/popup.tmpl
@@ -0,0 +1,37 @@
+title = $popup - ABP Test Pages
+template = testcase
+
+{% set testcase_moreinfo = [
+ ("Filter Options", "https://adblockplus.org/filters#options"),
+] %}
+
+
+<script>
+function do_popup()
+{
+ window.open("/en/popuptarget")
+}
+</script>
+
+<section class="site-panel">
+ <h2>$popup</h2>
+ <p>Check that usage of the $popup filter option is working as expected.</p>
+</section>
+
+<section class="site-panel">
+ <h2>Link-based popup</h2>
+ <div class="testcase-container">
+ <a href="/en/popuptarget" target="_blank">Link popup</a><br><br>
+ </div>
+ <h3>Filters</h3>
+ ||testpages.adblockplus.org/en/popuptarget^$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
+</section>

Powered by Google App Engine
This is Rietveld