summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/core/Security_test.php
diff options
context:
space:
mode:
authorHeesung Ahn <ahn.heesung@gmail.com>2015-03-05 17:03:48 +0100
committerHeesung Ahn <ahn.heesung@gmail.com>2015-03-05 17:03:48 +0100
commit588a0e3774d1397b9cd0b5f9d0ba2f4793243267 (patch)
treeec7b82ec0d2963d9a2014e7fc1c9afd57b56e9fe /tests/codeigniter/core/Security_test.php
parent7b0e60b085e35363bd9ab9150f62227f74711f2a (diff)
adding more img tags
Signed-off-by:Heesung Ahn <ahn.heesung@gmail.com>
Diffstat (limited to 'tests/codeigniter/core/Security_test.php')
-rw-r--r--tests/codeigniter/core/Security_test.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/codeigniter/core/Security_test.php b/tests/codeigniter/core/Security_test.php
index bf1714622..c96eecf02 100644
--- a/tests/codeigniter/core/Security_test.php
+++ b/tests/codeigniter/core/Security_test.php
@@ -133,12 +133,24 @@ class Security_test extends CI_TestCase {
{
$imgtags = Array(
'<img src="smiley.gif" alt="Smiley face" height="42" width="42">',
- '<img src="http://www.w3schools.com/images/w3schools_green.jpg">'
+ '<img alt="Smiley face" height="42" width="42" src="smiley.gif">',
+ '<img src="http://www.w3schools.com/images/w3schools_green.jpg">',
+ '<img src="/img/sunset.gif" height="100%" width="100%">',
+ '<img src="mdn-logo-sm.png" alt="MD Logo" srcset="mdn-logo-HD.png 2x, mdn-logo-small.png 15w, mdn-banner-HD.png 100w 2x" />',
+ '<img sqrc="/img/sunset.gif" height="100%" width="100%">',
+ '<img srqc="/img/sunset.gif" height="100%" width="100%">',
+ '<img srcq="/img/sunset.gif" height="100%" width="100%">'
);
$urls = Array(
'smiley.gif',
- 'http://www.w3schools.com/images/w3schools_green.jpg'
+ 'smiley.gif',
+ 'http://www.w3schools.com/images/w3schools_green.jpg',
+ '/img/sunset.gif',
+ 'mdn-logo-sm.png',
+ '<img sqrc="/img/sunset.gif" height="100%" width="100%">',
+ '<img srqc="/img/sunset.gif" height="100%" width="100%">',
+ '<img srcq="/img/sunset.gif" height="100%" width="100%">'
);
for($i = 0; $i < count($imgtags); $i++)