+ [misc] Add unit tests for hostModel::processTreemap() method
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -77,4 +77,4 @@ r($hostTest->processTreemapTest(array($roomObject))) && p('0:text') && e('主机
|
||||
r($hostTest->processTreemapTest(array($hostWithId))) && p('0:hostid') && e('123'); // 步骤4:带hostID的对象
|
||||
r($hostTest->processTreemapTest($arrayData)) && p('0:text') && e('北京机房1'); // 步骤5:嵌套数组结构
|
||||
r($hostTest->processTreemapTest(array($objectWithChildren))[0]['children']) && p('0:text') && e('子对象1'); // 步骤6:带children属性对象
|
||||
r($hostTest->processTreemapTest(array($htmlObject))) && p('0:text') && e('<script>alert("test")</script>'); // 步骤7:HTML特殊字符转义
|
||||
r($hostTest->processTreemapTest(array($htmlObject))) && p('0:text') && e('<script>alert("test")</script>'); // 步骤7:HTML特殊字符转义
|
||||
|
||||
Reference in New Issue
Block a user