This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10473 - No line number for CSS tests (MEASURES and STYLE_SHEETS_SUPPORT)
Summary: No line number for CSS tests (MEASURES and STYLE_SHEETS_SUPPORT)
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 16:02 UTC by fd
Modified: 2010-08-30 12:20 UTC (History)
0 users

See Also:


Attachments

Description fd 2010-08-27 16:02:15 UTC
CSS tests use regular expressions matchers that do return the start position of each match. It should be relatively straightforward to compute the line/column position from there, to be able to return more precise messages for MEASURES and STYLE_SHEETS_USE.
Comment 1 fd 2010-08-30 12:16:23 UTC
Short correction: the bug applies to MEASURES and STYLE_SHEETS_SUPPORT tests (and not STYLE_SHEETS_USE)
Comment 2 fd 2010-08-30 12:20:11 UTC
The character position gets converted to a line position in AbstractCSSTestImplementation and added to the error message in MeasuresTest and StyleSheetsSupportTest.

Column position not set for the time being. It could be done easily in the future though.


Related test cases in the test suite:
MEASURES 1
MEASURES 2
MEASURES 3
MEASURES 4
MEASURES 5
MEASURES 6
MEASURES 7
STYLE_SHEETS_SUPPORT 1
STYLE_SHEETS_SUPPORT 2
STYLE_SHEETS_SUPPORT 3
STYLE_SHEETS_SUPPORT 5