diff --git a/dom/nfc/tests/marionette/head.js b/dom/nfc/tests/marionette/head.js index 2f707e6ea78..329a2cdddfc 100644 --- a/dom/nfc/tests/marionette/head.js +++ b/dom/nfc/tests/marionette/head.js @@ -95,7 +95,7 @@ let TAG = (function() { function setData(re, flag, tnf, type, payload) { let deferred = Promise.defer(); let cmd = "nfc tag set " + re + - " [" + flag + "," + tnf + "," + type + "," + payload + ",]"; + " [" + flag + "," + tnf + "," + type + ",," + payload + "]"; emulator.run(cmd, function(result) { is(result.pop(), "OK", "set NDEF data of tag" + re); @@ -122,13 +122,13 @@ let TAG = (function() { }()); let SNEP = (function() { - function put(dsap, ssap, flags, tnf, type, payload, id) { + function put(dsap, ssap, flags, tnf, type, id, payload) { let deferred = Promise.defer(); let cmd = "nfc snep put " + dsap + " " + ssap + " [" + flags + "," + tnf + "," + type + "," + - payload + "," + - id + "]"; + id + "," + + payload + "]"; emulator.run(cmd, function(result) { is(result.pop(), "OK", "send SNEP PUT"); deferred.resolve(); diff --git a/dom/nfc/tests/marionette/test_nfc_manager_tech_discovered_ndef.js b/dom/nfc/tests/marionette/test_nfc_manager_tech_discovered_ndef.js index 93eb0967442..3d2aed4589b 100644 --- a/dom/nfc/tests/marionette/test_nfc_manager_tech_discovered_ndef.js +++ b/dom/nfc/tests/marionette/test_nfc_manager_tech_discovered_ndef.js @@ -6,8 +6,8 @@ MARIONETTE_HEAD_JS = 'head.js'; let tnf = NDEF.TNF_WELL_KNOWN; let type = "U"; -let payload = "https://www.example.com"; let id = ""; +let payload = "https://www.example.com"; let ndef = null; @@ -35,7 +35,7 @@ function testReceiveNDEF() { toggleNFC(true) .then(() => NCI.activateRE(emulator.P2P_RE_INDEX_0)) .then(() => SNEP.put(SNEP.SAP_NDEF, SNEP.SAP_NDEF, 0, tnf, btoa(type), - btoa(payload), btoa(id))); + btoa(id), btoa(payload))); } let tests = [