diff options
author | Heesung Ahn <ahn.heesung@gmail.com> | 2015-03-05 17:03:48 +0100 |
---|---|---|
committer | Heesung Ahn <ahn.heesung@gmail.com> | 2015-03-05 17:03:48 +0100 |
commit | 588a0e3774d1397b9cd0b5f9d0ba2f4793243267 (patch) | |
tree | ec7b82ec0d2963d9a2014e7fc1c9afd57b56e9fe | |
parent | 7b0e60b085e35363bd9ab9150f62227f74711f2a (diff) |
adding more img tags
Signed-off-by:Heesung Ahn <ahn.heesung@gmail.com>
-rw-r--r-- | tests/codeigniter/core/Security_test.php | 16 |
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++) |