Page MenuHomeSealhub

Add tests to autosizes-measure
Open, NormalPublic1 Points

Description

Write tests for autosizes-measure (see the parent task T2497) parser with Mocha, so they are run and understood by Phabricator.

Include 5 test cases:

  1. A trivial one
<!DOCTYPE html>
<html>
	<head></head>
	<body>
		<div style="background-color: red; height: 20px; width: 100vw"></div>
	</body>
</html>

(measure the div element width)

  1. A responsive grid of images that has more columns when there's more horizontal space
  1. A single image that does not change size no matter the viewport width
  1. A single image that appears in the DOM after 2000ms artificial delay and has constant size
  1. A page that does not contain the target element

They should be local HTML files with embedded CSS that the tool will be using for measurement. Probably they can just be passed as a file:// url argument

Related Objects

StatusAssignedTask
OpenNone

Event Timeline

kuba-orlik renamed this task from Add tests to autosizes-parser to Add tests to autosizes-measure.Mon, Apr 28, 18:22
kuba-orlik added a subtask: Unknown Object (Maniphest Task).
kuba-orlik updated the task description. (Show Details)
ziomek updated Coded by, added: ziomek.
ziomek removed ziomek as the assignee of this task.Tue, Apr 29, 20:04
ziomek updated Coded by, removed: ziomek.
ziomek subscribed.
ziomek unsubscribed.
kuba-orlik closed subtask Unknown Object (Maniphest Task) as Resolved.Tue, Apr 29, 20:39