From 8b6d2a6aae44bc92685b170b244afe953f345b58 Mon Sep 17 00:00:00 2001 From: Geoffrey Sneddon Date: Mon, 28 Nov 2016 16:22:24 +0000 Subject: [PATCH] Update name_is_reference to match everything from web-platform-tests --- manifest/sourcefile.py | 2 +- manifest/tests/test_sourcefile.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/manifest/sourcefile.py b/manifest/sourcefile.py index 4c37765..499518b 100644 --- a/manifest/sourcefile.py +++ b/manifest/sourcefile.py @@ -16,7 +16,7 @@ wd_pattern = "*.py" -reference_file_re = re.compile(r'-(not)?ref[0-9]*(-|$)') +reference_file_re = re.compile(r'(^|[\-_])(not)?ref[0-9]*([\-_]|$)') def replace_end(s, old, new): """ diff --git a/manifest/tests/test_sourcefile.py b/manifest/tests/test_sourcefile.py index 7096f06..a1625f6 100644 --- a/manifest/tests/test_sourcefile.py +++ b/manifest/tests/test_sourcefile.py @@ -96,7 +96,10 @@ def test_name_is_visual(rel_path): "css21/css-e-notation-ref-1.html", "css21/floats/floats-placement-vertical-004-ref2.xht", "css21/box/rtl-linebreak-notref1.xht", - "css21/box/rtl-linebreak-notref2.xht" + "css21/box/rtl-linebreak-notref2.xht", + "2dcontext/drawing-images-to-the-canvas/drawimage_html_image_5_ref.html", + "2dcontext/line-styles/lineto_ref.html", + "html/rendering/non-replaced-elements/the-fieldset-element-0/ref.html" ]) def test_name_is_reference(rel_path): s = create(rel_path)