Closed Bug 815531 Opened 12 years ago Closed 11 years ago

splinter fails to display attachment 681995 [details] [diff] [review] correctly

Categories

(bugzilla.mozilla.org :: Splinter, defect)

Production
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: glob, Assigned: glob)

References

()

Details

(Whiteboard: [ateamtrack: p=bugzilla q=2013q2 m=3])

splinter fails to display attachment 681995 [details] [diff] [review] correctly.
it only finds one file, instead of four.
Whiteboard: [ateamtrack: p=bugzilla q=2 m=3]
Whiteboard: [ateamtrack: p=bugzilla q=2 m=3] → [ateamtrack: p=bugzilla q=2013q2 m=3]
Assignee: nobody → glob
the problem here is the first hunk:

@@ -0,0 +1,8 @@
+#filter substitution
+@MOZ_APP_BASENAME@_@MOZ_APP_VERSION@ {
+global: JS_*;
+js_*;
+_Z[NTVK0-9]*JS*;
+_Z[NTVK0-9]*js*;
+};
+
--- a/mozilla/toolkit/library/Makefile.in	2012-11-07 11:08:34.000000000 -0500
+++ b/mozilla/toolkit/library/Makefile.in	2012-11-07 11:08:15.000000000 -0500
@@ -120,6 +120,13 @@
 ifeq (Linux,$(OS_ARCH))
 ifneq (Android,$(OS_TARGET))
 OS_LIBS += -lrt

splinter was looking for lines which start with either - or + to find the end of the hunk, and was skipping over the --- and +++ lines thinking they were part of the hunk.  from there things went downhill.

i updated the hunk regex to include a negative lookahead for ---, which should fix this.

Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bmo/4.2/
modified extensions/Splinter/web/splinter.js
Committed revision 8791.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Blocks: 885464
You need to log in before you can comment on or make changes to this bug.