From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=This test case ensures that Duktape can correctly interpret and execute embedded Javascript. |setup= # Install a fresh copy of Fedora. # Ensure `duktape` and its development files are installed, possibly using: `dnf install duktape duktape-devel`. # Prepare a sample C/C++ application that embeds Duktape and some basic Javascript code to execute. |actions= # Compile the sample application which embeds Duktape. Here's the code for it in https...") |
(No difference)
|
Revision as of 09:40, 21 August 2023
Description
This test case ensures that Duktape can correctly interpret and execute embedded Javascript.
Setup
- Install a fresh copy of Fedora.
- Ensure
duktape
and its development files are installed, possibly using:dnf install duktape duktape-devel
. - Prepare a sample C/C++ application that embeds Duktape and some basic Javascript code to execute.
How to test
- Compile the sample application which embeds Duktape. Here's the code for it in [gist]
- Run the application.
- Observe the output or behavior to see if the embedded Javascript code is executed.
Expected Results
- The application should compile without errors related to Duktape.
- The Javascript code embedded in the application should be executed correctly, producing expected outputs or behaviors.
Optional
- Test with different Javascript snippets, including those with functions, loops, and object manipulations, to ensure broad coverage.
- Monitor for memory leaks or stability issues when executing complex Javascript code.