1 // Checks that the search results have the expected width.
2 goto: file://|DOC_PATH|/test_docs/index.html
4 write: (".search-input", "test")
5 // Waiting for the search results to appear...
7 // The width is returned by "getComputedStyle" which returns the exact number instead of the
8 // CSS rule which is "50%"...
9 assert-css: (".search-results div.desc", {"width": "295px"})
11 // As counter-intuitive as it may seem, in this width, the width is "100%", which is why
12 // when computed it's larger.
13 assert-css: (".search-results div.desc", {"width": "570px"})