File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -233,13 +233,13 @@ public function test_limit_dimensions_default() {
233233
234234 $ replaced_content = Optml_Manager::instance ()->process_images_from_content ( self ::IMG_TAGS_LIMIT_DIMENSIONS ['portrait ' ] );
235235 $ this ->assertStringContainsString ( 'i.optimole.com ' , $ replaced_content );
236- $ this ->assertStringContainsString ( '/w:720 / ' , $ replaced_content );
237- $ this ->assertStringContainsString ( '/h:1080 / ' , $ replaced_content );
236+ $ this ->assertStringContainsString ( '/w:1920 / ' , $ replaced_content );
237+ $ this ->assertStringContainsString ( '/h:2880 / ' , $ replaced_content ); // the height is 1.5 times the width because the original image is 2:3 ratio
238238
239239 $ replaced_content = Optml_Manager::instance ()->process_images_from_content ( self ::IMG_TAGS_LIMIT_DIMENSIONS ['landscape ' ] );
240240 $ this ->assertStringContainsString ( 'i.optimole.com ' , $ replaced_content );
241- $ this ->assertStringContainsString ( '/w:1620 / ' , $ replaced_content );
242- $ this ->assertStringContainsString ( '/h:1080 / ' , $ replaced_content );
241+ $ this ->assertStringContainsString ( '/w:1920 / ' , $ replaced_content );
242+ $ this ->assertStringContainsString ( '/h:1280 / ' , $ replaced_content );
243243
244244 $ replaced_content = Optml_Manager::instance ()->process_images_from_content ( self ::IMG_TAGS_LIMIT_DIMENSIONS ['equal ' ] );
245245 $ this ->assertStringContainsString ( 'i.optimole.com ' , $ replaced_content );
You can’t perform that action at this time.
0 commit comments