changeset 3138:21ee5bcf80a3

Hotfix for AB tests with page interface axis
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Tue, 12 Nov 2019 16:09:53 +0000
parents 669f50f1941d
children bc0ef78bb07a
files interfaces/AB.js
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/interfaces/AB.js	Tue Jul 02 07:01:50 2019 +0200
+++ b/interfaces/AB.js	Tue Nov 12 16:09:53 2019 +0000
@@ -327,6 +327,10 @@
         this.exportXMLDOM = function (audioObject) {
             var node = storage.document.createElement('value');
             node.textContent = this.value;
+            var iname = testState.getCurrentTestPage().interfaces[0].name;
+            if (typeof iname == "string") {
+                node.setAttribute("interface-name", iname);
+            }
             return node;
         };
         this.getValue = function () {