@@ -87,80 +87,80 @@ public function testIncorrectJsonButton() {
8787 }
8888
8989 public function testResizeFitShouldDisplayResizedTextInMediaLibrary () {
90- $ this ->set_api_key ('JPG123 ' );
90+ $ this ->set_api_key ('PNG123 ' );
9191 $ this ->enable_resize (300 , 200 );
92- $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-large .png ' );
92+ $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-example .png ' );
9393 self ::$ driver ->findElement (WebDriverBy::cssSelector ('td.tiny-compress-images a.thickbox ' ))->click ();
9494 $ this ->assertContains ('resized to 300x200 ' ,
9595 self ::$ driver ->findElement (WebDriverBy::cssSelector ('div.tiny-compression-details ' ))->getText ());
9696 }
9797
9898 public function testResizeFitShouldDisplayResizedTextInEditScreen () {
99- $ this ->set_api_key ('JPG123 ' );
99+ $ this ->set_api_key ('PNG123 ' );
100100 $ this ->enable_resize (300 , 200 );
101- $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-large .png ' );
101+ $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-example .png ' );
102102 $ this ->view_edit_image ();
103103 $ this ->assertContains ('Dimensions: 300 × 200 ' ,
104104 self ::$ driver ->findElement (WebDriverBy::cssSelector ('div.misc-pub-dimensions ' ))->getText ());
105105 }
106106
107107 public function testResizeScaleShouldDisplayResizedTextInMediaLibrary () {
108- $ this ->set_api_key ('JPG123 ' );
108+ $ this ->set_api_key ('PNG123 ' );
109109 $ this ->enable_resize (0 , 200 );
110- $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-large.jpg ' );
110+ $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-example.png ' );
111111 self ::$ driver ->findElement (WebDriverBy::cssSelector ('td.tiny-compress-images a.thickbox ' ))->click ();
112112 $ this ->assertContains ('resized to 300x200 ' , self ::$ driver ->findElement (
113113 WebDriverBy::cssSelector ('div.tiny-compression-details ' ))->getText ());
114114 }
115115
116116 public function testResizeScaleShouldDisplayResizedTextInEditScreen () {
117- $ this ->set_api_key ('JPG123 ' );
117+ $ this ->set_api_key ('PNG123 ' );
118118 $ this ->enable_resize (0 , 200 );
119- $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-large.jpg ' );
119+ $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-example.png ' );
120120 $ this ->view_edit_image ();
121121 $ this ->assertContains ('Dimensions: 300 × 200 ' ,
122122 self ::$ driver ->findElement (WebDriverBy::cssSelector ('div.misc-pub-dimensions ' ))->getText ());
123123 }
124124
125125 public function testResizeNotNeededShouldNotDisplayResizedTextInMediaLibrary ()
126126 {
127- $ this ->set_api_key ('JPG123 ' );
127+ $ this ->set_api_key ('PNG123 ' );
128128 $ this ->enable_resize (30000 , 20000 );
129- $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-large.jpg ' );
129+ $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-example.png ' );
130130 self ::$ driver ->findElement (WebDriverBy::cssSelector ('td.tiny-compress-images a.thickbox ' ))->click ();
131131 $ this ->assertNotContains ('resized ' ,
132132 self ::$ driver ->findElement (WebDriverBy::cssSelector ('div.tiny-compression-details ' ))->getText ());
133133 }
134134
135135 public function testResizeNotNeededShouldDisplayOriginalDimensionsInEditScreen ()
136136 {
137- $ this ->set_api_key ('JPG123 ' );
137+ $ this ->set_api_key ('PNG123 ' );
138138 $ this ->enable_resize (30000 , 20000 );
139- $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-large.jpg ' );
139+ $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-example.png ' );
140140 $ this ->view_edit_image ();
141- $ this ->assertContains ('Dimensions: 1080 × 330 ' ,
141+ $ this ->assertContains ('Dimensions: 1080 × 720 ' ,
142142 self ::$ driver ->findElement (WebDriverBy::cssSelector ('div.misc-pub-dimensions ' ))->getText ());
143143 }
144144
145145 public function testResizeDisabledShouldNotDisplayResizedTextInMediaLibrary ()
146146 {
147- $ this ->set_api_key ('JPG123 ' );
147+ $ this ->set_api_key ('PNG123 ' );
148148 $ this ->enable_resize (300 , 200 );
149149 $ this ->disable_resize ();
150- $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-large.jpg ' );
150+ $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-example.png ' );
151151 self ::$ driver ->findElement (WebDriverBy::cssSelector ('td.tiny-compress-images a.thickbox ' ))->click ();
152152 $ this ->assertNotContains ('resized ' ,
153153 self ::$ driver ->findElement (WebDriverBy::cssSelector ('div.tiny-compression-details ' ))->getText ());
154154 }
155155
156156 public function testResizeDisabledShouldDisplayOriginalDimensionsInEditScreen ()
157157 {
158- $ this ->set_api_key ('JPG123 ' );
158+ $ this ->set_api_key ('PNG123 ' );
159159 $ this ->enable_resize (300 , 200 );
160160 $ this ->disable_resize ();
161- $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-large.jpg ' );
161+ $ this ->upload_image (dirname (__FILE__ ) . '/../fixtures/input-example.png ' );
162162 $ this ->view_edit_image ();
163- $ this ->assertContains ('Dimensions: 1080 × 330 ' ,
163+ $ this ->assertContains ('Dimensions: 1080 × 720 ' ,
164164 self ::$ driver ->findElement (WebDriverBy::cssSelector ('div.misc-pub-dimensions ' ))->getText ());
165165 }
166166}
0 commit comments