@@ -0,0 +1,1358 @@
+package com.evgenii.jsevaluatortests;%0A%0Aimport android.test.ActivityInstrumentationTestCase2;%0Aimport android.test.TouchUtils;%0Aimport android.test.suitebuilder.annotation.MediumTest;%0Aimport android.view.View;%0Aimport android.widget.Button;%0Aimport android.widget.TextView;%0A%0A%0Apublic class DestroyActivityTests extends%0A        ActivityInstrumentationTestCase2%3CDestroyActivity%3E %7B%0A%0A    private DestroyActivity mActivity;%0A%0A    public DestroyActivityTests() %7B%0A        super(DestroyActivity.class);%0A    %7D%0A%0A    @Override%0A    protected void setUp() throws Exception %7B%0A        super.setUp();%0A        mActivity = getActivity();%0A    %7D%0A%0A    @MediumTest%0A    public void testEvaluateButton_clickButtonAndShowResult() %7B%0A        final Button evaluateButton = (Button) mActivity.findViewById(R.id.button_evaluate_on_destroy);%0A%0A        final TextView resultTextView = (TextView) mActivity.findViewById(R.id.js_result_destroy_text_view);%0A%0A        TouchUtils.clickView(this, evaluateButton);%0A        assertTrue(View.VISIBLE == resultTextView.getVisibility());%0A        assertEquals(%22Result: 4%22, resultTextView.getText().toString());%0A%0A        final Button destroyButton = (Button) mActivity.findViewById(R.id.button_destroy);%0A        TouchUtils.clickView(this, destroyButton);%0A    %7D%0A%0A    public void testPreconditions() %7B%0A        assertNotNull(%22mActivity is null%22, mActivity);%0A    %7D%0A%7D%0A

Test destroy