From 92bccd38e7d2ef8388e92cd66d61176b4cebdc0b Mon Sep 17 00:00:00 2001
From: Alan Livio
Date: Mon, 26 Mar 2018 17:42:13 -0300
Subject: [PATCH 001/169] tests: Add test-Media-start-over-anchors
---
.gitignore | 1 +
tests/Makefile.am | 3 +
tests/test-Media-start-over-anchors.cpp | 447 ++++++++++++++++++++++++
3 files changed, 451 insertions(+)
create mode 100644 tests/test-Media-start-over-anchors.cpp
diff --git a/.gitignore b/.gitignore
index f00d25e37..ce5b1fc97 100644
--- a/.gitignore
+++ b/.gitignore
@@ -151,6 +151,7 @@
/tests/test-Media-focusIndex
/tests/test-Media-explicitDur
/tests/test-Media-nested-explicitDur
+/tests/test-Media-start-over-anchors
/tests/test-MediaSettings-instances
/tests/test-MediaSettings-new
/tests/test-Object-addAlias
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 328ef5533..42549d0f5 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -290,6 +290,9 @@ test_Media_focusIndex_SOURCES= test-Media-focusIndex.cpp
progs+= test-Media-mime
test_Media_mime_SOURCES= test-Media-mime.cpp
+progs+= test-Media-start-over-anchors
+test_Media_start_over_anchors_SOURCES= test-Media-start-over-anchors.cpp
+
# lib/MediaSettings.h ------------------------------------------------------
progs+= test-MediaSettings-instances
test_MediaSettings_instances_SOURCES= test-MediaSettings-instances.cpp
diff --git a/tests/test-Media-start-over-anchors.cpp b/tests/test-Media-start-over-anchors.cpp
new file mode 100644
index 000000000..fb9006e33
--- /dev/null
+++ b/tests/test-Media-start-over-anchors.cpp
@@ -0,0 +1,447 @@
+/* Copyright (C) 2006-2018 PUC-Rio/Laboratorio TeleMidia
+
+This file is part of Ginga (Ginga-NCL).
+
+Ginga is free software: you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+Ginga is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Ginga. If not, see . */
+
+#include "tests.h"
+
+int
+main (void)
+{
+ // start in anchor with begin nonzero and link waiting for this anchor end
+ for (int i = 0; i < samples.size (); i++)
+ {
+ Formatter *fmt;
+ Document *doc;
+ tests_parse_and_start (&fmt, &doc,
+ xstrbuild ("\
+\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+
\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+\n",
+ samples[i].uri, samples[i].uri));
+
+ Context *body = cast (Context *, doc->getRoot ());
+ g_assert_nonnull (body);
+ Event *body_lambda = body->getLambda ();
+ g_assert_nonnull (body_lambda);
+
+ Media *m1 = cast (Media *, doc->getObjectById ("m1"));
+ g_assert_nonnull (m1);
+ Event *m1_lambda = m1->getLambda ();
+ g_assert_nonnull (m1_lambda);
+
+ Media *m2 = cast (Media *, doc->getObjectById ("m2"));
+ g_assert_nonnull (m2);
+ Event *m2_lambda = m2->getLambda ();
+ g_assert_nonnull (m2_lambda);
+
+ // --------------------------------
+ // check start document
+
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::SLEEPING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (0, 0, 0);
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::OCCURRING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (20 * GINGA_SECOND, 20 * GINGA_SECOND, 0);
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::OCCURRING);
+ g_assert (m2_lambda->getState () == Event::OCCURRING);
+
+ delete fmt;
+ }
+
+ // start in anchor with begin nonzero and link waiting another anchor with
+ // begin after the begin of the first anchor
+ for (int i = 0; i < samples.size (); i++)
+ {
+ Formatter *fmt;
+ Document *doc;
+ tests_parse_and_start (&fmt, &doc,
+ xstrbuild ("\
+\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+
\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+\n",
+ samples[i].uri, samples[i].uri));
+
+ Context *body = cast (Context *, doc->getRoot ());
+ g_assert_nonnull (body);
+ Event *body_lambda = body->getLambda ();
+ g_assert_nonnull (body_lambda);
+
+ Media *m1 = cast (Media *, doc->getObjectById ("m1"));
+ g_assert_nonnull (m1);
+ Event *m1_lambda = m1->getLambda ();
+ g_assert_nonnull (m1_lambda);
+
+ Media *m2 = cast (Media *, doc->getObjectById ("m2"));
+ g_assert_nonnull (m2);
+ Event *m2_lambda = m2->getLambda ();
+ g_assert_nonnull (m2_lambda);
+
+ // --------------------------------
+ // check start document
+
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::SLEEPING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (0, 0, 0);
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::OCCURRING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (20 * GINGA_SECOND, 20 * GINGA_SECOND, 0);
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::OCCURRING);
+ g_assert (m2_lambda->getState () == Event::OCCURRING);
+
+ delete fmt;
+ }
+
+
+ // start in anchor with begin nonzero and link waiting another anchor begin
+ // with time before the begin of the first anchor
+ for (int i = 0; i < samples.size (); i++)
+ {
+ Formatter *fmt;
+ Document *doc;
+ tests_parse_and_start (&fmt, &doc, xstrbuild ("\
+\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+
\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+\n",
+ samples[i].uri, samples[i].uri));
+
+ Context *body = cast (Context *, doc->getRoot ());
+ g_assert_nonnull (body);
+ Event *body_lambda = body->getLambda ();
+ g_assert_nonnull (body_lambda);
+
+ Media *m1 = cast (Media *, doc->getObjectById ("m1"));
+ g_assert_nonnull (m1);
+ Event *m1_lambda = m1->getLambda ();
+ g_assert_nonnull (m1_lambda);
+
+ Media *m2 = cast (Media *, doc->getObjectById ("m2"));
+ g_assert_nonnull (m2);
+ Event *m2_lambda = m2->getLambda ();
+ g_assert_nonnull (m2_lambda);
+
+ // --------------------------------
+ // check start document
+
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::SLEEPING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (0, 0, 0);
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::OCCURRING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (20 * GINGA_SECOND, 20 * GINGA_SECOND, 0);
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::OCCURRING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ delete fmt;
+ }
+
+ // start in anchor with non-zero end and link waiting
+ // an anchor end with time after the end of the first anchor
+ for (int i = 0; i < samples.size (); i++)
+ {
+ Formatter *fmt;
+ Document *doc;
+ tests_parse_and_start (&fmt, &doc, xstrbuild ("\
+\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+
\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+\n",
+ samples[i].uri, samples[i].uri));
+
+ Context *body = cast (Context *, doc->getRoot ());
+ g_assert_nonnull (body);
+ Event *body_lambda = body->getLambda ();
+ g_assert_nonnull (body_lambda);
+
+ Media *m1 = cast (Media *, doc->getObjectById ("m1"));
+ g_assert_nonnull (m1);
+ Event *m1_lambda = m1->getLambda ();
+ g_assert_nonnull (m1_lambda);
+
+ Media *m2 = cast (Media *, doc->getObjectById ("m2"));
+ g_assert_nonnull (m2);
+ Event *m2_lambda = m2->getLambda ();
+ g_assert_nonnull (m2_lambda);
+
+ // --------------------------------
+ // check start document
+
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::SLEEPING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (0, 0, 0);
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::OCCURRING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (25 * GINGA_SECOND, 25 * GINGA_SECOND, 0);
+ g_assert (m1_lambda->getState () == Event::SLEEPING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ delete fmt;
+ }
+
+ // start in anchor with non-zero end and link waiting an anchor with end
+ // time the end before to the first anchor
+ for (int i = 0; i < samples.size (); i++)
+ {
+ Formatter *fmt;
+ Document *doc;
+ tests_parse_and_start (&fmt, &doc, xstrbuild ("\
+\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+
\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+\n",
+ samples[i].uri, samples[i].uri));
+
+ Context *body = cast (Context *, doc->getRoot ());
+ g_assert_nonnull (body);
+ Event *body_lambda = body->getLambda ();
+ g_assert_nonnull (body_lambda);
+
+ Media *m1 = cast (Media *, doc->getObjectById ("m1"));
+ g_assert_nonnull (m1);
+ Event *m1_lambda = m1->getLambda ();
+ g_assert_nonnull (m1_lambda);
+
+ Media *m2 = cast (Media *, doc->getObjectById ("m2"));
+ g_assert_nonnull (m2);
+ Event *m2_lambda = m2->getLambda ();
+ g_assert_nonnull (m2_lambda);
+
+ // --------------------------------
+ // check start document
+
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::SLEEPING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (0, 0, 0);
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::OCCURRING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (20 * GINGA_SECOND, 20 * GINGA_SECOND, 0);
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::SLEEPING);
+ g_assert (m2_lambda->getState () == Event::OCCURRING);
+
+ delete fmt;
+ }
+
+ // start an anchor and start another anchor
+ for (int i = 0; i < samples.size (); i++)
+ {
+ Formatter *fmt;
+ Document *doc;
+ tests_parse_and_start (&fmt, &doc,xstrbuild ("\
+\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+
\n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+ \n\
+\n",
+ samples[i].uri, samples[i].uri));
+
+ Context *body = cast (Context *, doc->getRoot ());
+ g_assert_nonnull (body);
+ Event *body_lambda = body->getLambda ();
+ g_assert_nonnull (body_lambda);
+
+ Media *m1 = cast (Media *, doc->getObjectById ("m1"));
+ g_assert_nonnull (m1);
+ Event *m1_lambda = m1->getLambda ();
+ g_assert_nonnull (m1_lambda);
+
+ Media *m2 = cast (Media *, doc->getObjectById ("m2"));
+ g_assert_nonnull (m2);
+ Event *m2_lambda = m2->getLambda ();
+ g_assert_nonnull (m2_lambda);
+
+ // --------------------------------
+ // check start document
+
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::OCCURRING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (0, 0, 0);
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::OCCURRING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ fmt->sendTick (10 * GINGA_SECOND, 10 * GINGA_SECOND, 0);
+ g_assert (body_lambda->getState () == Event::OCCURRING);
+ g_assert (m1_lambda->getState () == Event::OCCURRING);
+ g_assert (m2_lambda->getState () == Event::SLEEPING);
+
+ delete fmt;
+ }
+
+ exit (EXIT_SUCCESS);
+}
From 9dea3adfe1363197f29d5fd796033b8aa2047368 Mon Sep 17 00:00:00 2001
From: Alan Livio
Date: Tue, 27 Mar 2018 10:37:01 -0300
Subject: [PATCH 002/169] tests-ncl: Create tests-ncl for start over video
anchors similar those present in Media-start-over-anchors.cpp
---
tests-ncl/test-video-time-anchor-1.ncl | 32 ++++++++++++++++++++++++++
tests-ncl/test-video-time-anchor-2.ncl | 32 ++++++++++++++++++++++++++
tests-ncl/test-video-time-anchor-3.ncl | 32 ++++++++++++++++++++++++++
tests-ncl/test-video-time-anchor-4.ncl | 31 +++++++++++++++++++++++++
tests-ncl/test-video-time-anchor-5.ncl | 31 +++++++++++++++++++++++++
tests-ncl/test-video-time-anchor-6.ncl | 31 +++++++++++++++++++++++++
6 files changed, 189 insertions(+)
create mode 100644 tests-ncl/test-video-time-anchor-1.ncl
create mode 100644 tests-ncl/test-video-time-anchor-2.ncl
create mode 100644 tests-ncl/test-video-time-anchor-3.ncl
create mode 100644 tests-ncl/test-video-time-anchor-4.ncl
create mode 100644 tests-ncl/test-video-time-anchor-5.ncl
create mode 100644 tests-ncl/test-video-time-anchor-6.ncl
diff --git a/tests-ncl/test-video-time-anchor-1.ncl b/tests-ncl/test-video-time-anchor-1.ncl
new file mode 100644
index 000000000..8619e17e4
--- /dev/null
+++ b/tests-ncl/test-video-time-anchor-1.ncl
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests-ncl/test-video-time-anchor-2.ncl b/tests-ncl/test-video-time-anchor-2.ncl
new file mode 100644
index 000000000..78d3a96ea
--- /dev/null
+++ b/tests-ncl/test-video-time-anchor-2.ncl
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests-ncl/test-video-time-anchor-3.ncl b/tests-ncl/test-video-time-anchor-3.ncl
new file mode 100644
index 000000000..06d9ddb14
--- /dev/null
+++ b/tests-ncl/test-video-time-anchor-3.ncl
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests-ncl/test-video-time-anchor-4.ncl b/tests-ncl/test-video-time-anchor-4.ncl
new file mode 100644
index 000000000..455792710
--- /dev/null
+++ b/tests-ncl/test-video-time-anchor-4.ncl
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests-ncl/test-video-time-anchor-5.ncl b/tests-ncl/test-video-time-anchor-5.ncl
new file mode 100644
index 000000000..c70287abc
--- /dev/null
+++ b/tests-ncl/test-video-time-anchor-5.ncl
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests-ncl/test-video-time-anchor-6.ncl b/tests-ncl/test-video-time-anchor-6.ncl
new file mode 100644
index 000000000..ab1b42341
--- /dev/null
+++ b/tests-ncl/test-video-time-anchor-6.ncl
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From 7e440b45c01b39a4039b26986d119847ae094a15 Mon Sep 17 00:00:00 2001
From: Alan Livio
Date: Tue, 27 Mar 2018 10:38:41 -0300
Subject: [PATCH 003/169] tests-ncl: Remove old video over anchors tests
---
tests-ncl/old/test-video-start-anchor.ncl | 51 --------------
tests-ncl/old/test-video-time-anchor-1.ncl | 56 ---------------
tests-ncl/old/test-video-time-anchor-2.ncl | 79 ----------------------
3 files changed, 186 deletions(-)
delete mode 100644 tests-ncl/old/test-video-start-anchor.ncl
delete mode 100644 tests-ncl/old/test-video-time-anchor-1.ncl
delete mode 100644 tests-ncl/old/test-video-time-anchor-2.ncl
diff --git a/tests-ncl/old/test-video-start-anchor.ncl b/tests-ncl/old/test-video-start-anchor.ncl
deleted file mode 100644
index 7220ee675..000000000
--- a/tests-ncl/old/test-video-start-anchor.ncl
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
diff --git a/tests-ncl/old/test-video-time-anchor-1.ncl b/tests-ncl/old/test-video-time-anchor-1.ncl
deleted file mode 100644
index ca30cdd38..000000000
--- a/tests-ncl/old/test-video-time-anchor-1.ncl
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
diff --git a/tests-ncl/old/test-video-time-anchor-2.ncl b/tests-ncl/old/test-video-time-anchor-2.ncl
deleted file mode 100644
index bc6dff92b..000000000
--- a/tests-ncl/old/test-video-time-anchor-2.ncl
+++ /dev/null
@@ -1,79 +0,0 @@
-
-
From cf3f23df2b5110e1042d86abaa333e1fd95aa89a Mon Sep 17 00:00:00 2001
From: Alan Livio
Date: Tue, 27 Mar 2018 10:46:41 -0300
Subject: [PATCH 004/169] tests-ncl: Move tests-ncl/old/test-video-* to
tests-ncl/
---
tests-ncl/{old => }/test-video-abort-press-red.ncl | 0
tests-ncl/{old => }/test-video-abort.ncl | 0
tests-ncl/{old => }/test-video-explicit-dur.ncl | 0
tests-ncl/{old => }/test-video-leak.ncl | 0
tests-ncl/{old => }/test-video-natural-end.ncl | 0
tests-ncl/{old => }/test-video-onbegin-onend.ncl | 0
tests-ncl/{old => }/test-video-pause.ncl | 0
tests-ncl/{old => }/test-video-press-red-green.ncl | 0
tests-ncl/{old => }/test-video-set-balanceLevel.ncl | 0
tests-ncl/{old => }/test-video-set-bassLevel-trebleLevel.ncl | 0
tests-ncl/{old => }/test-video-set-freeze.ncl | 0
tests-ncl/{old => }/test-video-set-rate.ncl | 0
tests-ncl/{old => }/test-video-set-seek.ncl | 0
tests-ncl/{old => }/test-video-set-volume.ncl | 0
14 files changed, 0 insertions(+), 0 deletions(-)
rename tests-ncl/{old => }/test-video-abort-press-red.ncl (100%)
rename tests-ncl/{old => }/test-video-abort.ncl (100%)
rename tests-ncl/{old => }/test-video-explicit-dur.ncl (100%)
rename tests-ncl/{old => }/test-video-leak.ncl (100%)
rename tests-ncl/{old => }/test-video-natural-end.ncl (100%)
rename tests-ncl/{old => }/test-video-onbegin-onend.ncl (100%)
rename tests-ncl/{old => }/test-video-pause.ncl (100%)
rename tests-ncl/{old => }/test-video-press-red-green.ncl (100%)
rename tests-ncl/{old => }/test-video-set-balanceLevel.ncl (100%)
rename tests-ncl/{old => }/test-video-set-bassLevel-trebleLevel.ncl (100%)
rename tests-ncl/{old => }/test-video-set-freeze.ncl (100%)
rename tests-ncl/{old => }/test-video-set-rate.ncl (100%)
rename tests-ncl/{old => }/test-video-set-seek.ncl (100%)
rename tests-ncl/{old => }/test-video-set-volume.ncl (100%)
diff --git a/tests-ncl/old/test-video-abort-press-red.ncl b/tests-ncl/test-video-abort-press-red.ncl
similarity index 100%
rename from tests-ncl/old/test-video-abort-press-red.ncl
rename to tests-ncl/test-video-abort-press-red.ncl
diff --git a/tests-ncl/old/test-video-abort.ncl b/tests-ncl/test-video-abort.ncl
similarity index 100%
rename from tests-ncl/old/test-video-abort.ncl
rename to tests-ncl/test-video-abort.ncl
diff --git a/tests-ncl/old/test-video-explicit-dur.ncl b/tests-ncl/test-video-explicit-dur.ncl
similarity index 100%
rename from tests-ncl/old/test-video-explicit-dur.ncl
rename to tests-ncl/test-video-explicit-dur.ncl
diff --git a/tests-ncl/old/test-video-leak.ncl b/tests-ncl/test-video-leak.ncl
similarity index 100%
rename from tests-ncl/old/test-video-leak.ncl
rename to tests-ncl/test-video-leak.ncl
diff --git a/tests-ncl/old/test-video-natural-end.ncl b/tests-ncl/test-video-natural-end.ncl
similarity index 100%
rename from tests-ncl/old/test-video-natural-end.ncl
rename to tests-ncl/test-video-natural-end.ncl
diff --git a/tests-ncl/old/test-video-onbegin-onend.ncl b/tests-ncl/test-video-onbegin-onend.ncl
similarity index 100%
rename from tests-ncl/old/test-video-onbegin-onend.ncl
rename to tests-ncl/test-video-onbegin-onend.ncl
diff --git a/tests-ncl/old/test-video-pause.ncl b/tests-ncl/test-video-pause.ncl
similarity index 100%
rename from tests-ncl/old/test-video-pause.ncl
rename to tests-ncl/test-video-pause.ncl
diff --git a/tests-ncl/old/test-video-press-red-green.ncl b/tests-ncl/test-video-press-red-green.ncl
similarity index 100%
rename from tests-ncl/old/test-video-press-red-green.ncl
rename to tests-ncl/test-video-press-red-green.ncl
diff --git a/tests-ncl/old/test-video-set-balanceLevel.ncl b/tests-ncl/test-video-set-balanceLevel.ncl
similarity index 100%
rename from tests-ncl/old/test-video-set-balanceLevel.ncl
rename to tests-ncl/test-video-set-balanceLevel.ncl
diff --git a/tests-ncl/old/test-video-set-bassLevel-trebleLevel.ncl b/tests-ncl/test-video-set-bassLevel-trebleLevel.ncl
similarity index 100%
rename from tests-ncl/old/test-video-set-bassLevel-trebleLevel.ncl
rename to tests-ncl/test-video-set-bassLevel-trebleLevel.ncl
diff --git a/tests-ncl/old/test-video-set-freeze.ncl b/tests-ncl/test-video-set-freeze.ncl
similarity index 100%
rename from tests-ncl/old/test-video-set-freeze.ncl
rename to tests-ncl/test-video-set-freeze.ncl
diff --git a/tests-ncl/old/test-video-set-rate.ncl b/tests-ncl/test-video-set-rate.ncl
similarity index 100%
rename from tests-ncl/old/test-video-set-rate.ncl
rename to tests-ncl/test-video-set-rate.ncl
diff --git a/tests-ncl/old/test-video-set-seek.ncl b/tests-ncl/test-video-set-seek.ncl
similarity index 100%
rename from tests-ncl/old/test-video-set-seek.ncl
rename to tests-ncl/test-video-set-seek.ncl
diff --git a/tests-ncl/old/test-video-set-volume.ncl b/tests-ncl/test-video-set-volume.ncl
similarity index 100%
rename from tests-ncl/old/test-video-set-volume.ncl
rename to tests-ncl/test-video-set-volume.ncl
From dc92c8e4bee8f250b98f935bc157e4b88e2545d0 Mon Sep 17 00:00:00 2001
From: Alan Livio
Date: Tue, 27 Mar 2018 11:04:15 -0300
Subject: [PATCH 005/169] tests-ncl: Move generated ncl tests to
tests-ncl/generated/
---
.gitignore | 38 +++++++++----------
Makefile.am | 2 +-
configure.ac | 2 +-
tests-ncl/{ => generated}/Makefile.am | 0
.../{ => generated}/test-media-4grid.ncl.in | 0
.../test-media-anim-background.ncl.in | 0
.../test-media-anim-dimensions.ncl.in | 0
.../test-media-anim-transparency.ncl.in | 0
.../test-media-dimensions.ncl.in | 0
.../{ => generated}/test-media-empty.ncl.in | 0
.../test-media-explicitDur.ncl.in | 0
.../test-media-focusIndex.ncl.in | 0
.../{ => generated}/test-media-loop.ncl.in | 0
.../test-media-nested-region.ncl.in | 0
.../{ => generated}/test-media-no-desc.ncl.in | 0
.../test-media-no-region.ncl.in | 0
.../test-media-stop-self.ncl.in | 0
.../test-media-transparency.ncl.in | 0
.../{ => generated}/test-media-visible.ncl.in | 0
.../{ => generated}/test-media-zIndex.ncl.in | 0
tests-ncl/{ => generated}/test-mime.ncl.in | 0
21 files changed, 21 insertions(+), 21 deletions(-)
rename tests-ncl/{ => generated}/Makefile.am (100%)
rename tests-ncl/{ => generated}/test-media-4grid.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-anim-background.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-anim-dimensions.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-anim-transparency.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-dimensions.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-empty.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-explicitDur.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-focusIndex.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-loop.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-nested-region.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-no-desc.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-no-region.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-stop-self.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-transparency.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-visible.ncl.in (100%)
rename tests-ncl/{ => generated}/test-media-zIndex.ncl.in (100%)
rename tests-ncl/{ => generated}/test-mime.ncl.in (100%)
diff --git a/.gitignore b/.gitignore
index ce5b1fc97..0fb3a4b2e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -79,25 +79,25 @@
/src/Makefile.in
/src/ginga
/src/ginga-gl
-/tests-ncl/Makefile
-/tests-ncl/Makefile.in
-/tests-ncl/test-media-*-4grid.ncl
-/tests-ncl/test-media-*-anim-background.ncl
-/tests-ncl/test-media-*-anim-dimensions.ncl
-/tests-ncl/test-media-*-anim-transparency.ncl
-/tests-ncl/test-media-*-dimensions.ncl
-/tests-ncl/test-media-*-empty.ncl
-/tests-ncl/test-media-*-explicitDur.ncl
-/tests-ncl/test-media-*-focusIndex.ncl
-/tests-ncl/test-media-*-loop.ncl
-/tests-ncl/test-media-*-nested-region.ncl
-/tests-ncl/test-media-*-no-desc.ncl
-/tests-ncl/test-media-*-no-region.ncl
-/tests-ncl/test-media-*-stop-self.ncl
-/tests-ncl/test-media-*-transparency.ncl
-/tests-ncl/test-media-*-visible.ncl
-/tests-ncl/test-media-*-zIndex.ncl
-/tests-ncl/test-mime-*.ncl
+/tests-ncl/generated/Makefile
+/tests-ncl/generated/Makefile.in
+/tests-ncl/generated/test-media-*-4grid.ncl
+/tests-ncl/generated/test-media-*-anim-background.ncl
+/tests-ncl/generated/test-media-*-anim-dimensions.ncl
+/tests-ncl/generated/test-media-*-anim-transparency.ncl
+/tests-ncl/generated/test-media-*-dimensions.ncl
+/tests-ncl/generated/test-media-*-empty.ncl
+/tests-ncl/generated/test-media-*-explicitDur.ncl
+/tests-ncl/generated/test-media-*-focusIndex.ncl
+/tests-ncl/generated/test-media-*-loop.ncl
+/tests-ncl/generated/test-media-*-nested-region.ncl
+/tests-ncl/generated/test-media-*-no-desc.ncl
+/tests-ncl/generated/test-media-*-no-region.ncl
+/tests-ncl/generated/test-media-*-stop-self.ncl
+/tests-ncl/generated/test-media-*-transparency.ncl
+/tests-ncl/generated/test-media-*-visible.ncl
+/tests-ncl/generated/test-media-*-zIndex.ncl
+/tests-ncl/generated/test-mime-*.ncl
/tests/Makefile
/tests/Makefile.in
/tests/env.csh
diff --git a/Makefile.am b/Makefile.am
index 6db2dee8f..3aac0864e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,7 @@
include $(top_srcdir)/build-aux/Makefile.am.common
ACLOCAL_AMFLAGS= -I build-aux ${ACLOCAL_FLAGS}
-SUBDIRS= lib src src-gui tests-ncl tests
+SUBDIRS= lib src src-gui tests-ncl/generated tests
# Setup code coverage.
include $(top_srcdir)/build-aux/Makefile.am.coverage
diff --git a/configure.ac b/configure.ac
index 6ac25e394..7ef040289 100644
--- a/configure.ac
+++ b/configure.ac
@@ -318,7 +318,7 @@ src/Makefile
src-gui/Makefile
src-gui/icons/Makefile
src-gui/style/Makefile
-tests-ncl/Makefile
+tests-ncl/generated/Makefile
tests/Makefile
])
diff --git a/tests-ncl/Makefile.am b/tests-ncl/generated/Makefile.am
similarity index 100%
rename from tests-ncl/Makefile.am
rename to tests-ncl/generated/Makefile.am
diff --git a/tests-ncl/test-media-4grid.ncl.in b/tests-ncl/generated/test-media-4grid.ncl.in
similarity index 100%
rename from tests-ncl/test-media-4grid.ncl.in
rename to tests-ncl/generated/test-media-4grid.ncl.in
diff --git a/tests-ncl/test-media-anim-background.ncl.in b/tests-ncl/generated/test-media-anim-background.ncl.in
similarity index 100%
rename from tests-ncl/test-media-anim-background.ncl.in
rename to tests-ncl/generated/test-media-anim-background.ncl.in
diff --git a/tests-ncl/test-media-anim-dimensions.ncl.in b/tests-ncl/generated/test-media-anim-dimensions.ncl.in
similarity index 100%
rename from tests-ncl/test-media-anim-dimensions.ncl.in
rename to tests-ncl/generated/test-media-anim-dimensions.ncl.in
diff --git a/tests-ncl/test-media-anim-transparency.ncl.in b/tests-ncl/generated/test-media-anim-transparency.ncl.in
similarity index 100%
rename from tests-ncl/test-media-anim-transparency.ncl.in
rename to tests-ncl/generated/test-media-anim-transparency.ncl.in
diff --git a/tests-ncl/test-media-dimensions.ncl.in b/tests-ncl/generated/test-media-dimensions.ncl.in
similarity index 100%
rename from tests-ncl/test-media-dimensions.ncl.in
rename to tests-ncl/generated/test-media-dimensions.ncl.in
diff --git a/tests-ncl/test-media-empty.ncl.in b/tests-ncl/generated/test-media-empty.ncl.in
similarity index 100%
rename from tests-ncl/test-media-empty.ncl.in
rename to tests-ncl/generated/test-media-empty.ncl.in
diff --git a/tests-ncl/test-media-explicitDur.ncl.in b/tests-ncl/generated/test-media-explicitDur.ncl.in
similarity index 100%
rename from tests-ncl/test-media-explicitDur.ncl.in
rename to tests-ncl/generated/test-media-explicitDur.ncl.in
diff --git a/tests-ncl/test-media-focusIndex.ncl.in b/tests-ncl/generated/test-media-focusIndex.ncl.in
similarity index 100%
rename from tests-ncl/test-media-focusIndex.ncl.in
rename to tests-ncl/generated/test-media-focusIndex.ncl.in
diff --git a/tests-ncl/test-media-loop.ncl.in b/tests-ncl/generated/test-media-loop.ncl.in
similarity index 100%
rename from tests-ncl/test-media-loop.ncl.in
rename to tests-ncl/generated/test-media-loop.ncl.in
diff --git a/tests-ncl/test-media-nested-region.ncl.in b/tests-ncl/generated/test-media-nested-region.ncl.in
similarity index 100%
rename from tests-ncl/test-media-nested-region.ncl.in
rename to tests-ncl/generated/test-media-nested-region.ncl.in
diff --git a/tests-ncl/test-media-no-desc.ncl.in b/tests-ncl/generated/test-media-no-desc.ncl.in
similarity index 100%
rename from tests-ncl/test-media-no-desc.ncl.in
rename to tests-ncl/generated/test-media-no-desc.ncl.in
diff --git a/tests-ncl/test-media-no-region.ncl.in b/tests-ncl/generated/test-media-no-region.ncl.in
similarity index 100%
rename from tests-ncl/test-media-no-region.ncl.in
rename to tests-ncl/generated/test-media-no-region.ncl.in
diff --git a/tests-ncl/test-media-stop-self.ncl.in b/tests-ncl/generated/test-media-stop-self.ncl.in
similarity index 100%
rename from tests-ncl/test-media-stop-self.ncl.in
rename to tests-ncl/generated/test-media-stop-self.ncl.in
diff --git a/tests-ncl/test-media-transparency.ncl.in b/tests-ncl/generated/test-media-transparency.ncl.in
similarity index 100%
rename from tests-ncl/test-media-transparency.ncl.in
rename to tests-ncl/generated/test-media-transparency.ncl.in
diff --git a/tests-ncl/test-media-visible.ncl.in b/tests-ncl/generated/test-media-visible.ncl.in
similarity index 100%
rename from tests-ncl/test-media-visible.ncl.in
rename to tests-ncl/generated/test-media-visible.ncl.in
diff --git a/tests-ncl/test-media-zIndex.ncl.in b/tests-ncl/generated/test-media-zIndex.ncl.in
similarity index 100%
rename from tests-ncl/test-media-zIndex.ncl.in
rename to tests-ncl/generated/test-media-zIndex.ncl.in
diff --git a/tests-ncl/test-mime.ncl.in b/tests-ncl/generated/test-mime.ncl.in
similarity index 100%
rename from tests-ncl/test-mime.ncl.in
rename to tests-ncl/generated/test-mime.ncl.in
From 2217b9ec6783189a262521899b31544473586278 Mon Sep 17 00:00:00 2001
From: Alan Livio
Date: Tue, 27 Mar 2018 11:22:16 -0300
Subject: [PATCH 006/169] Make test-import-region.ncl not use generated ncl
---
tests-ncl/test-import-region.ncl | 2 +-
tests-ncl/test-misc-empty-body.ncl | 17 +++++++++++++++++
2 files changed, 18 insertions(+), 1 deletion(-)
create mode 100644 tests-ncl/test-misc-empty-body.ncl
diff --git a/tests-ncl/test-import-region.ncl b/tests-ncl/test-import-region.ncl
index bc58bfda4..a94f2b684 100644
--- a/tests-ncl/test-import-region.ncl
+++ b/tests-ncl/test-import-region.ncl
@@ -1,7 +1,7 @@
-
+
diff --git a/tests-ncl/test-misc-empty-body.ncl b/tests-ncl/test-misc-empty-body.ncl
new file mode 100644
index 000000000..d82217906
--- /dev/null
+++ b/tests-ncl/test-misc-empty-body.ncl
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From dfba7ba3bc825c4dec90bf0fbf39a4b7a20e6697 Mon Sep 17 00:00:00 2001
From: Alan Livio
Date: Tue, 27 Mar 2018 11:35:55 -0300
Subject: [PATCH 007/169] tests: Make test-Parser-parseFile cover ncls from
tests-ncl/generated and examples
---
tests/test-Parser-parseFile.cpp | 61 ++++++++++++++++++++-------------
1 file changed, 38 insertions(+), 23 deletions(-)
diff --git a/tests/test-Parser-parseFile.cpp b/tests/test-Parser-parseFile.cpp
index 972acfa3d..5a65da31c 100644
--- a/tests/test-Parser-parseFile.cpp
+++ b/tests/test-Parser-parseFile.cpp
@@ -30,34 +30,49 @@ main (void)
g_assert_null (Parser::parseFile ("nonexistent", 100, 100, nullptr));
// Sanity checks.
- path = xpathbuildabs (ABS_TOP_SRCDIR, "tests-ncl");
- dir = g_dir_open (path.c_str (), 0, nullptr);
- g_assert_nonnull (dir);
+ vector nclFolders;
+ nclFolders.push_back (xpathbuildabs (ABS_TOP_SRCDIR, "tests-ncl"));
+ nclFolders.push_back (
+ xpathbuildabs (ABS_TOP_SRCDIR, "tests-ncl/generated"));
+ nclFolders.push_back (
+ xpathbuildabs (ABS_TOP_SRCDIR, "examples/hrace/"));
+ nclFolders.push_back (
+ xpathbuildabs (ABS_TOP_SRCDIR, "examples/luarocks/"));
+ nclFolders.push_back (
+ xpathbuildabs (ABS_TOP_SRCDIR, "examples/pacman/"));
+ nclFolders.push_back (
+ xpathbuildabs (ABS_TOP_SRCDIR, "examples/primeiro-joao/"));
- while ((entry = g_dir_read_name (dir)) != nullptr)
+ for (int i = 0; i < nclFolders.size (); i++)
{
- string entry_path;
- Document *doc;
- string errmsg;
+ dir = g_dir_open (nclFolders[i].c_str (), 0, nullptr);
+ g_assert_nonnull (dir);
- entry_path = xpathbuildabs (path, string (entry));
- if (!xstrhassuffix (entry_path, ".ncl"))
- continue;
-
- errmsg = "";
- doc = Parser::parseFile (entry_path, 100, 100, &errmsg);
- if (doc == nullptr)
- {
- g_printerr ("%s: %s\n", entry, errmsg.c_str ());
- g_assert_not_reached ();
- }
- else
+ while ((entry = g_dir_read_name (dir)) != nullptr)
{
- g_assert (errmsg == "");
+ string entry_path;
+ Document *doc;
+ string errmsg;
+
+ entry_path = xpathbuildabs (nclFolders[i], string (entry));
+ if (!xstrhassuffix (entry_path, ".ncl"))
+ continue;
+
+ errmsg = "";
+ doc = Parser::parseFile (entry_path, 100, 100, &errmsg);
+ if (doc == nullptr)
+ {
+ g_printerr ("%s: %s\n", entry, errmsg.c_str ());
+ g_assert_not_reached ();
+ }
+ else
+ {
+ g_assert (errmsg == "");
+ }
+ delete doc;
}
- delete doc;
- }
- g_dir_close (dir);
+ g_dir_close (dir);
+ }
exit (EXIT_SUCCESS);
}
From 553539c336f3818547ccd74545d0e4d64c4b3a0f Mon Sep 17 00:00:00 2001
From: Alan Livio
Date: Tue, 27 Mar 2018 11:43:15 -0300
Subject: [PATCH 008/169] tests-ncl: Rename some ncl tests and remove one
already coverad
---
...c-stop-body.ncl => test-ctx-stop-self.ncl} | 0
...k-pause.ncl => test-link-onBeginPause.ncl} | 0
...-link-set.ncl => test-link-onBeginSet.ncl} | 0
...st-video-leak.ncl => test-video-4grid.ncl} | 0
tests-ncl/test-video-abort-press-red.ncl | 49 -------------------
...ss-red-green.ncl => test-video-resume.ncl} | 0
6 files changed, 49 deletions(-)
rename tests-ncl/{test-misc-stop-body.ncl => test-ctx-stop-self.ncl} (100%)
rename tests-ncl/{test-link-pause.ncl => test-link-onBeginPause.ncl} (100%)
rename tests-ncl/{test-link-set.ncl => test-link-onBeginSet.ncl} (100%)
rename tests-ncl/{test-video-leak.ncl => test-video-4grid.ncl} (100%)
delete mode 100644 tests-ncl/test-video-abort-press-red.ncl
rename tests-ncl/{test-video-press-red-green.ncl => test-video-resume.ncl} (100%)
diff --git a/tests-ncl/test-misc-stop-body.ncl b/tests-ncl/test-ctx-stop-self.ncl
similarity index 100%
rename from tests-ncl/test-misc-stop-body.ncl
rename to tests-ncl/test-ctx-stop-self.ncl
diff --git a/tests-ncl/test-link-pause.ncl b/tests-ncl/test-link-onBeginPause.ncl
similarity index 100%
rename from tests-ncl/test-link-pause.ncl
rename to tests-ncl/test-link-onBeginPause.ncl
diff --git a/tests-ncl/test-link-set.ncl b/tests-ncl/test-link-onBeginSet.ncl
similarity index 100%
rename from tests-ncl/test-link-set.ncl
rename to tests-ncl/test-link-onBeginSet.ncl
diff --git a/tests-ncl/test-video-leak.ncl b/tests-ncl/test-video-4grid.ncl
similarity index 100%
rename from tests-ncl/test-video-leak.ncl
rename to tests-ncl/test-video-4grid.ncl
diff --git a/tests-ncl/test-video-abort-press-red.ncl b/tests-ncl/test-video-abort-press-red.ncl
deleted file mode 100644
index 5cc6195a4..000000000
--- a/tests-ncl/test-video-abort-press-red.ncl
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
diff --git a/tests-ncl/test-video-press-red-green.ncl b/tests-ncl/test-video-resume.ncl
similarity index 100%
rename from tests-ncl/test-video-press-red-green.ncl
rename to tests-ncl/test-video-resume.ncl
From 4d794ff4426fcf50b18db1df9d427581ee034f2e Mon Sep 17 00:00:00 2001
From: Alan Livio
Date: Tue, 27 Mar 2018 12:03:53 -0300
Subject: [PATCH 009/169] tests-ncl: XML code format, and remove , id
from and 'Gerated by NCL eclipse' comentaries
---
...st-ctx-nested-started-without-siblings.ncl | 24 +--
.../broken-test-link-onBeginStopStart.ncl | 2 +-
tests-ncl/test-area-1.ncl | 2 +-
tests-ncl/test-area-2.ncl | 2 +-
tests-ncl/test-area-3.ncl | 2 +-
tests-ncl/test-area-4.ncl | 2 +-
tests-ncl/test-area-5.ncl | 2 +-
tests-ncl/test-area-label-1.ncl | 2 +-
tests-ncl/test-area-label-2.ncl | 2 +-
tests-ncl/test-ctx-naturalend-1.ncl | 2 +-
tests-ncl/test-ctx-nested-pause.ncl | 2 +-
tests-ncl/test-ctx-nested.ncl | 2 +-
tests-ncl/test-ctx-simple.ncl | 2 +-
tests-ncl/test-ctx-stop-self.ncl | 2 +-
tests-ncl/test-focusIndex-no-settings.ncl | 3 +-
tests-ncl/test-import-region.ncl | 2 +-
tests-ncl/test-link-action-with-delay-get.ncl | 2 +-
.../test-link-action-with-delay-param.ncl | 2 +-
tests-ncl/test-link-action-with-delay.ncl | 2 +-
tests-ncl/test-link-assessStmt.ncl | 2 +-
tests-ncl/test-link-compStmtAnd.ncl | 2 +-
tests-ncl/test-link-get-set.ncl | 2 +-
tests-ncl/test-link-onAbort-body.ncl | 2 +-
tests-ncl/test-link-onAbort-ctx.ncl | 18 +-
tests-ncl/test-link-onAbort.ncl | 2 +-
tests-ncl/test-link-onBeginAreaStart.ncl | 2 +-
tests-ncl/test-link-onBeginAreaStartTwice.ncl | 2 +-
tests-ncl/test-link-onBeginAtt-after-anim.ncl | 2 +-
tests-ncl/test-link-onBeginAtt.ncl | 2 +-
tests-ncl/test-link-onBeginLambdaStart.ncl | 2 +-
.../test-link-onBeginLambdaStartTwice.ncl | 2 +-
tests-ncl/test-link-onBeginPause.ncl | 2 +-
tests-ncl/test-link-onBeginSet.ncl | 2 +-
tests-ncl/test-link-onBeginStop-ctx.ncl | 37 ++--
tests-ncl/test-link-onEndAreaStart.ncl | 2 +-
tests-ncl/test-link-onEndAtt-after-anim.ncl | 2 +-
tests-ncl/test-link-onEndAtt-body.ncl | 2 +-
tests-ncl/test-link-onEndAtt-ctx.ncl | 2 +-
tests-ncl/test-link-onEndAtt.ncl | 2 +-
tests-ncl/test-link-onEndAttOrOnBegin.ncl | 2 +-
tests-ncl/test-link-onKeySel.ncl | 2 +-
tests-ncl/test-link-onPause-body.ncl | 2 +-
tests-ncl/test-link-onPause-ctx.ncl | 2 +-
tests-ncl/test-link-onPause.ncl | 2 +-
tests-ncl/test-link-onResume-body.ncl | 2 +-
tests-ncl/test-link-onResume-ctx.ncl | 2 +-
tests-ncl/test-link-onResume.ncl | 14 +-
tests-ncl/test-link-onSel.ncl | 2 +-
tests-ncl/test-misc-empty-doc.ncl | 4 +-
tests-ncl/test-player-lua-random-property.ncl | 40 ++---
.../test-player-siggen-bit-10freq-150hz.ncl | 126 ++++++--------
.../test-player-siggen-bit-10freq-200hz.ncl | 126 ++++++--------
.../test-player-siggen-bit-13freq-100hz.ncl | 159 ++++++++----------
.../test-player-siggen-bit-13freq-150hz.ncl | 159 ++++++++----------
.../test-player-siggen-bit-4freq-200hz.ncl | 60 +++----
.../test-player-siggen-bit-8freq-150hz.ncl | 104 +++++-------
.../test-player-siggen-bit-8freq-200hz.ncl | 104 +++++-------
.../test-player-siggen-bit-9freq-200hz.ncl | 115 ++++++-------
tests-ncl/test-player-siggen-bit.ncl | 58 +++----
tests-ncl/test-player-siggen-freq.ncl | 20 +--
tests-ncl/test-player-siggen-start.ncl | 16 +-
tests-ncl/test-player-siggen-volume.ncl | 19 +--
tests-ncl/test-player-siggen-wave.ncl | 4 +-
.../test-player-txt-font-properties-2.ncl | 2 +-
tests-ncl/test-player-video-volume.ncl | 2 +-
tests-ncl/test-refer-1.ncl | 2 +-
tests-ncl/test-refer-2.ncl | 2 +-
tests-ncl/test-refer-3.ncl | 2 +-
tests-ncl/test-switch-dynamic-keys.ncl | 2 +-
tests-ncl/test-switch-simple.ncl | 2 +-
tests-ncl/test-switch-switchPort.ncl | 3 +-
tests-ncl/test-transition-barwipe.ncl | 3 +-
tests-ncl/test-transition-diagonalwipe.ncl | 3 +-
tests-ncl/test-transition-img-fade.ncl | 3 +-
tests-ncl/test-transition-vid-fade.ncl | 3 +-
tests-ncl/test-video-4grid.ncl | 59 ++++---
tests-ncl/test-video-abort.ncl | 8 +-
tests-ncl/test-video-explicit-dur.ncl | 2 +-
tests-ncl/test-video-natural-end.ncl | 9 +-
tests-ncl/test-video-onbegin-onend.ncl | 19 +--
tests-ncl/test-video-pause.ncl | 10 +-
tests-ncl/test-video-resume.ncl | 24 +--
tests-ncl/test-video-set-balanceLevel.ncl | 89 +++-------
.../test-video-set-bassLevel-trebleLevel.ncl | 69 ++------
tests-ncl/test-video-set-freeze.ncl | 8 +-
tests-ncl/test-video-set-rate.ncl | 67 ++------
tests-ncl/test-video-set-seek.ncl | 67 ++------
tests-ncl/test-video-set-volume.ncl | 84 +++------
88 files changed, 748 insertions(+), 1092 deletions(-)
diff --git a/tests-ncl/broken-test-ctx-nested-started-without-siblings.ncl b/tests-ncl/broken-test-ctx-nested-started-without-siblings.ncl
index 0201fe054..1f8ec6aa3 100644
--- a/tests-ncl/broken-test-ctx-nested-started-without-siblings.ncl
+++ b/tests-ncl/broken-test-ctx-nested-started-without-siblings.ncl
@@ -1,15 +1,15 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
+
\ No newline at end of file
diff --git a/tests-ncl/broken-test-link-onBeginStopStart.ncl b/tests-ncl/broken-test-link-onBeginStopStart.ncl
index 6b6c794c1..726402a7a 100644
--- a/tests-ncl/broken-test-link-onBeginStopStart.ncl
+++ b/tests-ncl/broken-test-link-onBeginStopStart.ncl
@@ -21,4 +21,4 @@
-
+
\ No newline at end of file
diff --git a/tests-ncl/test-area-1.ncl b/tests-ncl/test-area-1.ncl
index aebdda150..bbcc7e81d 100644
--- a/tests-ncl/test-area-1.ncl
+++ b/tests-ncl/test-area-1.ncl
@@ -45,4 +45,4 @@
-
+
\ No newline at end of file
diff --git a/tests-ncl/test-area-2.ncl b/tests-ncl/test-area-2.ncl
index 2e2f1279a..7c3b29273 100644
--- a/tests-ncl/test-area-2.ncl
+++ b/tests-ncl/test-area-2.ncl
@@ -46,4 +46,4 @@
@@ -33,15 +33,15 @@
-
-
+