Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Update name_is_reference to match everything from web-platform-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gsnedders committed Dec 14, 2016
1 parent a5c34e8 commit 8b6d2a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest/sourcefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
5 changes: 4 additions & 1 deletion manifest/tests/test_sourcefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8b6d2a6

Please sign in to comment.