imporve script execution of tasker plugin, fix sublime plugin large file issue
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.stardust.scriptdroid.statics;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.mozilla.javascript.Context;
|
||||
import org.mozilla.javascript.Scriptable;
|
||||
|
||||
/**
|
||||
* Created by Stardust on 2017/5/13.
|
||||
*/
|
||||
|
||||
public class RhinoE4XTest {
|
||||
|
||||
@Test
|
||||
public void testAttributeName() {
|
||||
Context context = Context.enter();
|
||||
Scriptable scriptable = context.initStandardObjects();
|
||||
context.setOptimizationLevel(-1);
|
||||
Object o = context.evaluateString(scriptable, "XML.ignoreProcessingInstructions = true; (<xml id=\"foo\"></xml>).attributes()[0].name()", "<e4x>", 1, null);
|
||||
System.out.println(o);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user