# HG changeset patch # User Nicholas Jillings # Date 1501592830 -3600 # Node ID 7b6cdd27f3eeb67f1b1e115e5074d15591f62a1d # Parent bcb741f602984d3767a3b9491f87681f93d431bd Completed #222 diff -r bcb741f60298 -r 7b6cdd27f3ee test_create.html --- a/test_create.html Tue Aug 01 11:57:16 2017 +0100 +++ b/test_create.html Tue Aug 01 14:07:10 2017 +0100 @@ -46,7 +46,9 @@
Interface: - +
Save URL: diff -r bcb741f60298 -r 7b6cdd27f3ee test_create/test_core.js --- a/test_create/test_core.js Tue Aug 01 11:57:16 2017 +0100 +++ b/test_create/test_core.js Tue Aug 01 14:07:10 2017 +0100 @@ -86,6 +86,11 @@ specification.processSchema(text); $s.globalSchema = specification.getSchema(); }); + $s.availableInterfaceModules = []; + get("interfaces/interfaces.json").then(JSON.parse).then(function (d) { + $s.availableInterfaceModules = d.interfaces; + $s.$apply(); + }); $s.specification = specification; $s.selectedTestPrototype = undefined; $s.setTestPrototype = function (obj) { @@ -276,8 +281,8 @@ if ($s.schema) { var spec = $s.schema.querySelector("attribute[name=\"" + name + "\"]") || $w.specification.schema.querySelector("attribute[name=\"" + name + "\"]"); var attr = spec.getAttribute("default"); - if (attr === undefined) { - return ""; + if (attr === null) { + return "Not set"; } return attr; } @@ -498,8 +503,8 @@ $s.placeholder = function (name) { var spec = $s.schema.querySelector("attribute[name=\"" + name + "\"]") || $w.specification.schema.querySelector("attribute[name=\"" + name + "\"]"); var attr = spec.getAttribute("default"); - if (attr === undefined) { - return ""; + if (attr === null) { + return "Not set"; } return attr; }