Skip to content

Commit

Permalink
feat: add unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Oct 12, 2022
1 parent a66617a commit d3cedfc
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,6 @@ public PocoElement findElement(String expression) throws SonicRespException {
return pocoElement;
}

@Override
public void freezeSource() {
isFrozen = true;
}

@Override
public void thawSource() {
isFrozen = false;
}

private List<PocoElement> parseAttr(PocoElement pocoElement, String express) {
String attrExpression = express.substring(express.indexOf("(") + 1, express.indexOf(")"));
if (attrExpression.startsWith("\"") && attrExpression.endsWith("\"")) {
Expand Down Expand Up @@ -211,6 +201,16 @@ private List<PocoElement> findElementsByAttr(PocoElement sourceElement, List<Poc
return result;
}

@Override
public void freezeSource() {
isFrozen = true;
}

@Override
public void thawSource() {
isFrozen = false;
}

@Override
public WindowSize getScreenSize() throws SonicRespException {
if (engine.equals(UNITY_3D) || engine.equals(COCOS_2DX_LUA)) {
Expand Down

0 comments on commit d3cedfc

Please sign in to comment.