Mercurial > hg > webaudioevaluationtool
comparison core.js @ 356:56003615235b Dev_main
Core collects navigator information
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Thu, 26 Nov 2015 09:59:22 +0000 |
parents | 2ad8022d17a7 |
children | 1f192370f126 |
comparison
equal
deleted
inserted
replaced
355:8a6d14ca37fe | 356:56003615235b |
---|---|
725 var xmlDoc = document.createElement("BrowserEvaluationResult"); | 725 var xmlDoc = document.createElement("BrowserEvaluationResult"); |
726 var projectDocument = specification.projectXML; | 726 var projectDocument = specification.projectXML; |
727 projectDocument.setAttribute('file-name',url); | 727 projectDocument.setAttribute('file-name',url); |
728 xmlDoc.appendChild(projectDocument); | 728 xmlDoc.appendChild(projectDocument); |
729 xmlDoc.appendChild(returnDateNode()); | 729 xmlDoc.appendChild(returnDateNode()); |
730 xmlDoc.appendChild(interfaceContext.returnNavigator()); | |
730 for (var i=0; i<testState.stateResults.length; i++) | 731 for (var i=0; i<testState.stateResults.length; i++) |
731 { | 732 { |
732 xmlDoc.appendChild(testState.stateResults[i]); | 733 xmlDoc.appendChild(testState.stateResults[i]); |
733 } | 734 } |
734 | 735 |
1693 console.log("Warning - Interface does not have Resize option"); | 1694 console.log("Warning - Interface does not have Resize option"); |
1694 console.log(err); | 1695 console.log(err); |
1695 } | 1696 } |
1696 }; | 1697 }; |
1697 | 1698 |
1699 this.returnNavigator = function() | |
1700 { | |
1701 var node = document.createElement("navigator"); | |
1702 var platform = document.createElement("platform"); | |
1703 platform.textContent = navigator.platform; | |
1704 var vendor = document.createElement("vendor"); | |
1705 vendor.textContent = navigator.vendor; | |
1706 var userAgent = document.createElement("uagent"); | |
1707 userAgent.textContent = navigator.userAgent; | |
1708 node.appendChild(platform); | |
1709 node.appendChild(vendor); | |
1710 node.appendChild(userAgent); | |
1711 return node; | |
1712 }; | |
1713 | |
1698 this.commentBoxes = []; | 1714 this.commentBoxes = []; |
1699 this.elementCommentBox = function(audioObject) { | 1715 this.elementCommentBox = function(audioObject) { |
1700 var element = audioObject.specification; | 1716 var element = audioObject.specification; |
1701 this.audioObject = audioObject; | 1717 this.audioObject = audioObject; |
1702 this.id = audioObject.id; | 1718 this.id = audioObject.id; |