mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Tabs to spaces cleanup
This commit is contained in:
@@ -21,14 +21,14 @@ class Html_Helper_Test extends Unit_Test_Case {
|
||||
public function clean_test() {
|
||||
$safe_string = html::clean("hello <p >world</p>");
|
||||
$this->assert_equal("hello <p >world</p>",
|
||||
$safe_string);
|
||||
$safe_string);
|
||||
$this->assert_true($safe_string instanceof SafeString);
|
||||
}
|
||||
|
||||
public function purify_test() {
|
||||
$safe_string = html::purify("hello <p >world</p>");
|
||||
$this->assert_equal("hello <p>world</p>",
|
||||
$safe_string);
|
||||
$safe_string);
|
||||
$this->assert_true($safe_string instanceof SafeString);
|
||||
}
|
||||
|
||||
@@ -37,19 +37,19 @@ class Html_Helper_Test extends Unit_Test_Case {
|
||||
$this->assert_true($safe_string instanceof SafeString);
|
||||
$safe_string_2 = html::clean($safe_string);
|
||||
$this->assert_equal("hello <p >world</p>",
|
||||
$safe_string_2);
|
||||
$safe_string_2);
|
||||
}
|
||||
|
||||
public function js_string_test() {
|
||||
$string = html::js_string("hello's <p >world</p>");
|
||||
$this->assert_equal('"hello\'s <p >world<\\/p>"',
|
||||
$string);
|
||||
$string);
|
||||
}
|
||||
|
||||
public function clean_attribute_test() {
|
||||
$safe_string = SafeString::of_safe_html("hello's <p >world</p>");
|
||||
$safe_string = html::clean_attribute($safe_string);
|
||||
$this->assert_equal("hello's <p >world</p>",
|
||||
$safe_string);
|
||||
$safe_string);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user