Closed
Bug 755080
Opened 12 years ago
Closed 12 years ago
Add some tests for binding codegen
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: bzbarsky, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 2 obsolete files)
6.71 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
4.55 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
13.93 KB,
patch
|
khuey
:
review+
peterv
:
review+
|
Details | Diff | Splinter Review |
Need to at least: 1) Have some test IDL. 2) Make sure it gets parsed by the IDL parser. 3) Make sure we can generate code from it. and preferably: 4) Make sure the code compiles against some C++ headers (and that the headers try to check that the code is somewhat correct in terms of the types it uses). and ideally: 5) Make sure the runtime behavior is correct. I'll try to do at least 1-3, maybe #4 here; won't worry about #5 too much so far.
Updated•12 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
![]() |
Reporter | |
Comment 1•12 years ago
|
||
Attachment #624263 -
Flags: review?(peterv)
Attachment #624263 -
Flags: review?(khuey)
![]() |
Reporter | |
Comment 2•12 years ago
|
||
Attachment #624278 -
Flags: review?(peterv)
![]() |
Reporter | |
Comment 3•12 years ago
|
||
I'll add some sequence tests in the bug where I convert those to dom::Sequence. I'll also add some tests of the infallible stuff in the bug on moving that annotation to the IDL. In general, people should feel free to add more stuff here!
Attachment #624305 -
Flags: review?(peterv)
![]() |
Reporter | |
Comment 4•12 years ago
|
||
Attachment #624306 -
Flags: review?(peterv)
![]() |
Reporter | |
Updated•12 years ago
|
Attachment #624305 -
Attachment is obsolete: true
Attachment #624305 -
Flags: review?(peterv)
![]() |
Reporter | |
Comment 5•12 years ago
|
||
One more note. I don't know exactly how to write tests for something like bug 754457... If anyone has bright ideas, let me know.
![]() |
Reporter | |
Comment 6•12 years ago
|
||
Attachment #625208 -
Flags: review?(peterv)
Attachment #625208 -
Flags: review?(khuey)
![]() |
Reporter | |
Updated•12 years ago
|
Attachment #624263 -
Attachment is obsolete: true
Attachment #624263 -
Flags: review?(peterv)
Attachment #624263 -
Flags: review?(khuey)
![]() |
Reporter | |
Updated•12 years ago
|
Attachment #625208 -
Attachment description: Disentangled from the CSS declaration stuff → Part 1 disentangled from the CSS declaration stuff
Comment on attachment 625208 [details] [diff] [review] Part 1 disentangled from the CSS declaration stuff Review of attachment 625208 [details] [diff] [review]: ----------------------------------------------------------------- Yuck, but ok. ::: dom/Makefile.in @@ +106,5 @@ > $(NULL) > endif > > +# bindings/test is here, because it needs to build after bindings, and > +# we build kids before ourselves. s/kids/subdirectories/ please. Also, please say 'bindings/' instead of 'bindings' so it's clear we're referring to a directory ::: dom/bindings/Makefile.in @@ +39,5 @@ > +ifdef ENABLE_TESTS > +test_webidl_files := TestCodeGen.webidl > +else > +test_webidl_files := $(NULL) > +endif Can we stick test_webidl_files in WebIDL.mk please?
Attachment #625208 -
Flags: review?(khuey) → review+
![]() |
Reporter | |
Comment 8•12 years ago
|
||
Made the changes comment 7 asks for. In dom/bindings/test/Makefile.in, I now do this: # And need this for $(test_webidl_files) include $(topsrcdir)/dom/webidl/WebIDL.mk # But the webidl actually lives in our parent dir test_webidl_files := $(addprefix ../,$(test_webidl_files)) to make the paths work out.
Updated•12 years ago
|
Attachment #625208 -
Flags: review?(peterv) → review+
Updated•12 years ago
|
Attachment #624278 -
Flags: review?(peterv) → review+
Updated•12 years ago
|
Attachment #624306 -
Flags: review?(peterv) → review+
![]() |
Reporter | |
Comment 9•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/24f6cf7eece9 https://hg.mozilla.org/integration/mozilla-inbound/rev/13e1c5f61e38 https://hg.mozilla.org/integration/mozilla-inbound/rev/afb26ea68c7f Please pretty please everyone go and add tests! But after I manage to check in bug 743906, so we don't conflict up the wazoo...
Comment 10•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/24f6cf7eece9 https://hg.mozilla.org/mozilla-central/rev/13e1c5f61e38 https://hg.mozilla.org/mozilla-central/rev/afb26ea68c7f Leaving open for the rest :-)
![]() |
Reporter | |
Comment 11•12 years ago
|
||
Nah, this is fixed. More work should happen in separate bugs.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•