Make WordPress Core

Ticket #26674: unit-test.patch

File unit-test.patch, 1.0 KB (added by kopepasah, 11 years ago)
Line 
1Index: tests/phpunit/tests/media.php
2===================================================================
3--- tests/phpunit/tests/media.php       (revision 26862)
4+++ tests/phpunit/tests/media.php       (working copy)
5@@ -292,8 +292,11 @@
6                $embed =<<<EMBED
7 <embed src="something.mp4"/>
8 EMBED;
9+               $img =<<<IMG
10+<img src="kittens.jpg" alt="Cute Kittens"/>
11+IMG;
12                $iframe =<<<IFRAME
13-<iframe src="youtube.com" width="7000" />
14+<iframe src="youtube.com" width="7000"></iframe>
15 IFRAME;
16                $audio =<<<AUDIO
17 <audio preload="none">
18@@ -308,21 +311,45 @@
19 
20                $content =<<<CONTENT
21 This is a comment
22+$img
23+
24+This is a comment
25 $object
26 
27 This is a comment
28+$iframe
29+
30+This is a comment
31 $embed
32 
33 This is a comment
34+$video
35+
36+This is a comment
37+$img
38+
39+This is a comment
40 $iframe
41 
42 This is a comment
43 $audio
44 
45 This is a comment
46+$embed
47+
48+This is a comment
49+$iframe
50+
51+This is a comment
52 $video
53 
54 This is a comment
55+$audio
56+
57+This is a comment
58+$object
59+
60+This is a comment
61 CONTENT;
62 
63                $types = array( 'audio', 'video', 'object', 'embed', 'iframe' );