gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [patch #8770] Patch for adding JavaScript-calls-Flash Ext


From: Nutchanon Wetchasit
Subject: [Gnash-commit] [patch #8770] Patch for adding JavaScript-calls-Flash ExternalInterface automated testcase
Date: Tue, 13 Oct 2015 09:42:23 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:25.5) Gecko/20150606 Firefox/31.9 PaleMoon/25.5.0

URL:
  <http://savannah.gnu.org/patch/?8770>

                 Summary: Patch for adding JavaScript-calls-Flash
ExternalInterface automated testcase
                 Project: Gnash - The GNU Flash player
            Submitted by: nachanon
            Submitted on: Tue 13 Oct 2015 04:42:22 PM ICT
                Category: testsuite
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Patch 1: see the attached `0004_add-js2flash-automated-testcase.patch`.

The patch adds an integrated version of `js2flash-auto` test
<https://savannah.gnu.org/bugs/?37223#comment17> provided
in bug #37223 to Gnash testsuite.

This automated test case is comprised of three parts:
* The test generator (`extcommtest-runner.sh`), generates the parameterized
test runner.
* The test runner (`extcommtest-runner`), creates named pipes, starts Gnash,
sends/recieves and check invoke/return message.
* The test SWF, runs inside Gnash, registers, listen for, and respond to the
callback call.

Note:
* The test generator followed what
`testsuite/misc-ming.all/XMLSocketTester.sh` script
<http://git.savannah.gnu.org/cgit/gnash.git/tree/testsuite/misc-ming.all/XMLSocketTester.sh?id=f0f66ce7f644a631bbb5f51f78375298fdef3d40>
did.
* The test assumes that filesystem supports named pipe.
* The test used a hard-coded 10-sec time frame for letting SWF file respond to
the invoke call. (Using `gnash -t 10`)
* The test used 5-sec timeout on reading each Gnash's response.
* Shell script side of this test used its own `check_*()` function.
* Shell script side of this test is responsible for counting total tests done
on both side.
* ExternalInterface callback registration is tested using an anonymous
function, registered using `_root` as `this` instance.
* "END OF TEST" signature check is not used, since the real tests start after
SWF's `main()` ended.

This patch might need some scrutiny regarding design and all, since this
is a pilot patch that adds infrastructure for testing on ExternalInterface
and related plugin functions.

Gnash: 0.8.11dev (patched against git f0f66ce 23-Sep-2015)
System: Debian GNU/Linux 7.0 Wheezy i386



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 13 Oct 2015 04:42:22 PM ICT  Name:
0004_add-js2flash-automated-testcase.patch  Size: 9kB   By: nachanon
Patch to add JavaScript-calls-Flash ExternalInterface automated testcase
<http://savannah.gnu.org/patch/download.php?file_id=35178>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8770>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]