Closed Bug 932505 Opened 11 years ago Closed 11 years ago

Add some basic checking for Bindings.conf

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: mccr8, Assigned: mccr8)

References

(Blocks 1 open bug)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

This is what I implemented:
1. If the entry is a list with a single element, it should have 'workers'=True. (This is just aesthetics.)
2. If the entry is a list with two elements, the 'workers' value for each should be different.
3. The entry should not be a list with more than two elements.

FYI, only 1, the trivial one, is violated.

If people have some more ideas, I can try to add them.
Assignee: nobody → continuation
Comment on attachment 825571 [details] [diff] [review]
add some checks and describe what the rules are

>+                raise TypeError("Interface " + iface.identifier.name +
>+                                " should have no more than two entries")

  "... entries in Bindings.conf" 

perhaps?  r=me. Thank you for cleaning this up and the documentation!
Attachment #825571 - Flags: review?(bzbarsky) → review+
Good point.  I added something about Bindings.conf to all of the error messages.

https://hg.mozilla.org/integration/mozilla-inbound/rev/f39d5c1d8ea8
https://hg.mozilla.org/mozilla-central/rev/f39d5c1d8ea8
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: