aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-11 08:44:48 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-11 08:44:48 -0500
commit648e1e51fad1c2198a30f62c50d7d2272134c399 (patch)
treee686cf03532a61b7fff885663f3887c4e1b19ed6
parent99c7483ade84e492f7bffb72cc2463fce2f65b94 (diff)
downloadforums-648e1e51fad1c2198a30f62c50d7d2272134c399.tar
forums-648e1e51fad1c2198a30f62c50d7d2272134c399.tar.gz
forums-648e1e51fad1c2198a30f62c50d7d2272134c399.tar.bz2
forums-648e1e51fad1c2198a30f62c50d7d2272134c399.tar.xz
forums-648e1e51fad1c2198a30f62c50d7d2272134c399.zip
[ticket/11388] INCLUDEJS test for //(url)
PHPBB3-11388
-rw-r--r--tests/template/template_includejs_test.php4
-rw-r--r--tests/template/templates/includejs.html2
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/template/template_includejs_test.php b/tests/template/template_includejs_test.php
index b644c8b6f0..d4a384a1c5 100644
--- a/tests/template/template_includejs_test.php
+++ b/tests/template/template_includejs_test.php
@@ -84,6 +84,10 @@ class phpbb_template_template_includejs_test extends phpbb_template_template_tes
array('TEST' => 16),
'<script type="text/javascript" src="http://phpbb.com/b.js?c=d&assets_version=1&assets_version=1#f"></script>',
),
+ array(
+ array('TEST' => 17),
+ '<script type="text/javascript" src="//phpbb.com/b.js?assets_version=1"></script>',
+ ),
);
}
diff --git a/tests/template/templates/includejs.html b/tests/template/templates/includejs.html
index 030681337b..3bcad76af5 100644
--- a/tests/template/templates/includejs.html
+++ b/tests/template/templates/includejs.html
@@ -32,5 +32,7 @@
<!-- INCLUDEJS http://phpbb.com/b.js?c=d#f -->
<!-- ELSEIF TEST === 16 -->
<!-- INCLUDEJS http://phpbb.com/b.js?c=d&assets_version=1#f -->
+<!-- ELSEIF TEST === 17 -->
+ <!-- INCLUDEJS //phpbb.com/b.js -->
<!-- ENDIF -->
{$SCRIPTS}