Add automated tests on unconventional target values in getURL().
[gnash.git] / testsuite / misc-ming.all / hostcmd-geturl.as
blobf8e1f5469938e2c73836d041dbb923d196cae3de
1 // hostcmd-geturl.as - getURL()/MovieClip.getURL() target tests
2 //
3 // Copyright (C) 2017 Free Software Foundation, Inc.
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
19 // Note:
20 // This SWF file does not run any test by itself as this is a test on
21 // plugin's host interface.
23 // Original author: Nutchanon Wetchasit <Nutchanon.Wetchasit@gmail.com>
26 // Once this Flash movie is run, it will issue `getURL()` call to host
27 // container via a built-in `getURL(url,target)` function and
28 // via `MovieClip.getURL(url,target)` with unconventional `target` values;
29 // each issued call will be checked for correctness by the emulated
30 // host container.
32 // In real browser environment, this test will not run in a useful manner
33 // as the early `getURL()` call will redirect test page to other file
34 // before the later tests could run.
36 trace("STARTOFTEST");
38 getURL("geturl-emptytarget.html", "");
40 #if OUTPUT_VERSION >= 5
41 getURL("geturl-notarget.html");
42 getURL("geturl-undeftarget.html", undefined);
43 getURL("geturl-nulltarget.html", null);
45 this.getURL("mcgeturl-emptytarget.html", "");
46 this.getURL("mcgeturl-notarget.html");
47 this.getURL("mcgeturl-undeftarget.html", undefined);
48 this.getURL("mcgeturl-nulltarget.html", null);
49 #endif
51 trace("ENDOFTEST");