]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #5335 added unit test for underscore in relative path for JS url normalization
authorcash <cash.costello@gmail.com>
Sun, 14 Apr 2013 23:32:03 +0000 (19:32 -0400)
committercash <cash.costello@gmail.com>
Sun, 14 Apr 2013 23:32:03 +0000 (19:32 -0400)
js/tests/ElggLibTest.js

index 2a676e22a36c31c302345618fc13392c6b8ef740..31b561923d1a1c5d3e8e580036950df5e894be4f 100644 (file)
@@ -78,6 +78,7 @@ ElggLibTest.prototype.testNormalizeUrl = function() {
                ['https://example.com', 'https://example.com'],
                ['http://example-time.com', 'http://example-time.com'],
                ['//example.com', '//example.com'],
+               ['mod/my_plugin/graphics/image.jpg', elgg.config.wwwroot + 'mod/my_plugin/graphics/image.jpg'],
 
                ['ftp://example.com/file', 'ftp://example.com/file'],
                ['mailto:brett@elgg.org', 'mailto:brett@elgg.org'],