From 5c1b6a938d8ae105c9c0a345624d21c7c0c21a96 Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Sun, 1 Nov 2015 00:37:59 +0300 Subject: [PATCH] Fix GetParameterNames in simulator when NextLevel is true --- test/methods.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/methods.coffee b/test/methods.coffee index f2fcf66..ac57dc8 100644 --- a/test/methods.coffee +++ b/test/methods.coffee @@ -68,8 +68,8 @@ exports.GetParameterNames = (device, xmlIn, xmlOut, callback) -> parameterList = [] if nextLevel for p in parameterNames - if common.startsWith(p, parameterPath) and p.length != parameterPath.length - i = p.indexOf('.', parameterPath.length) + if common.startsWith(p, parameterPath) and p.length > parameterPath.length + 1 + i = p.indexOf('.', parameterPath.length + 1) if i == -1 or i == p.length - 1 parameterList.push(p) else