#include <stdlib.h>
#include <stdio.h>
#include <ming.h>
#include <errno.h>
#include "ming_utils.h"
Defines | |
#define | OUTPUT_VERSION 8 |
#define | OUTPUT_FILENAME "LoadVarsTest.swf" |
Functions | |
int | main (int argc, char **argv) |
#define OUTPUT_FILENAME "LoadVarsTest.swf" |
Referenced by main().
#define OUTPUT_VERSION 8 |
Referenced by main().
int main | ( | int | argc, | |
char ** | argv | |||
) |
The decode method is overwritten to see where it gets called from. We don't call it ourselves. Don't forget to overwrite it again when the LoadVars object is constructed again.
What happens when load fails?
The onLoad method is called from the default implementation of onData. The "loaded" property is immediately set to false on a call to "load".
onData
Wait for data before proceeding to next frame.
onLoad
Both onData and onLoad
What happens when load succeeds?
Both methods are called separately. The "loaded" property is set to true only when "onData" isn't overwritten.
decode is called from onData (i.e. it's called when we overwrite onLoad, not onData).
What happens on load of empty data?
Same as a load failure.
End of tests.
References add_actions(), check_equals, gnash::fontlib::get_default_font(), get_dejagnu_clip(), OUTPUT_FILENAME, and OUTPUT_VERSION.