From c6adb4206339ffafaa2dd1f637bfdb7d6d64dea9 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Tue, 30 Aug 2016 13:44:13 +0800 Subject: [PATCH] MDL-55581 htmlpurifier: test for attributes in video tag --- lib/tests/htmlpurifier_test.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/lib/tests/htmlpurifier_test.php b/lib/tests/htmlpurifier_test.php index e2924af2968..7d7c87aec43 100644 --- a/lib/tests/htmlpurifier_test.php +++ b/lib/tests/htmlpurifier_test.php @@ -448,7 +448,7 @@ class core_htmlpurifier_testcase extends basic_testcase { 'No tasty jams for you.' . '' . '' - ]) + $generatetestcases('Video with invalid crossorigin', $videoattrs, [ + ]) + ['Video with invalid crossorigin' => [ '', @@ -457,7 +457,7 @@ class core_htmlpurifier_testcase extends basic_testcase { 'Oh, that\'s pretty bad 😦' . '' . '' - ]) + $generatetestcases('Audio with invalid crossorigin', $audioattrs, [ + ]] + ['Audio with invalid crossorigin' => [ '', @@ -466,6 +466,19 @@ class core_htmlpurifier_testcase extends basic_testcase { 'nyemnyemnyem' . '' . '' - ]); + ]] + ['Other attributes' => [ + '', + '
' . + '' . + '
' + ]]; } }