Closed Bug 777589 Opened 12 years ago Closed 12 years ago

jstest: Remove a 2 line workaround to a 2 line test fix

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla17

People

(Reporter: terrence, Assigned: terrence)

References

(Blocks 1 open bug)

Details

(Whiteboard: [js:t])

Attachments

(1 file, 1 obsolete file)

Attached patch v0 (obsolete) — Splinter Review
Oddness in the extreme.
Attachment #645968 - Flags: review?(sphink)
Whiteboard: [js:t]
Comment on attachment 645968 [details] [diff] [review]
v0

Review of attachment 645968 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/tests/js1_5/extensions/regress-50447-1.js
@@ +102,5 @@
>    var expectedLine = 114;
>    var expectedFileName = 'js1_5/extensions/regress-50447-1.js';
>    if (typeof document == "undefined")
>    {
> +    expectedFileName = expectedFileName;

I'm not going to look at this patch very closely, since it does seem rather odd and if everything works after it, I'm happy.

But why not go ahead and finish simplifying this?

  if (typeof document != "undefined") { ...href.replace... }

The "expectedFileName = expectedFileName" just makes me suspicious of bizarro magic that isn't happening.
Attachment #645968 - Flags: review?(sphink) → review+
Well, I only looked at code that I know runs during shell tests so that it could get checked in with DONTBUILD.  I'll see if there is more in that section that I can clean up before I commit it.
Oh, I see what you mean.  I know I was feeling rather tired yesterday, but still, wow.
Oh yes, there was a reason that I kept the code that way: the test is checking that the exceptions it raises have the right line number.  I fixed the line numbers for the shell, going to give it a try in the browser to make sure I didn't throw those off.
Attachment #645968 - Attachment is obsolete: true
Attachment #646227 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/01b9cf7935be
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: