# HG changeset patch # User Nicholas Jillings # Date 1523351905 -3600 # Node ID f99b888f57e98104689dd632a6e7c8d3af4ad799 # Parent 1e5a9d92daa0bcc370c590e74025b01426b176f9 Possible fix for #272 diff -r 1e5a9d92daa0 -r f99b888f57e9 test_create.html --- a/test_create.html Tue Apr 10 09:38:05 2018 +0100 +++ b/test_create.html Tue Apr 10 10:18:25 2018 +0100 @@ -1052,6 +1052,9 @@
+

Please wait while assets load...

+
+
Welcome to the WAET test creator tool. This will allow you to create a new test from scratch to suit your testing needs. If you wish to update a test file, please drag and drop the XML document into the area below for processing, otherwise press 'Next' to start a new test. This tool generates files for the WAET 1.2.2 version.
@@ -1059,7 +1062,7 @@
-
+
Please select the interface you would like to use below. Selecting an interface will give a brief description of the interface type.
diff -r 1e5a9d92daa0 -r f99b888f57e9 test_create/test_core.js --- a/test_create/test_core.js Tue Apr 10 09:38:05 2018 +0100 +++ b/test_create/test_core.js Tue Apr 10 10:18:25 2018 +0100 @@ -85,6 +85,7 @@ get("xml/test-schema.xsd").then(function (text) { specification.processSchema(text); $s.globalSchema = specification.getSchema(); + $s.$apply(); }); $s.availableInterfaceModules = []; get("interfaces/interfaces.json").then(JSON.parse).then(function (d) { @@ -179,7 +180,7 @@ $s.selected = undefined; $s.next = function () { $s.state++; - if ($s.state > 1 || $s.file) { + if ($s.state > 2 || $s.file) { $s.hidePopup(); $s.initialise($s.selected); } @@ -187,6 +188,15 @@ $s.back = function () { $s.state--; }; + + $s.$watch(function () { + return ($s.globalSchema !== undefined) + }, function () { + if ($s.globalSchema !== undefined && $s.state === 0) { + $s.state = 1; + } + }) + $s.mouseover = function (name) { var obj = $s.testSpecifications.interfaces.find(function (i) { return i.name == name; @@ -211,9 +221,9 @@ } }; $s.select = function (name) { - $s.selected = name; - } - // Get the test interface specifications + $s.selected = name; + } + // Get the test interface specifications $s.file = undefined; $s.description = "";