@@ -0,0 +1,1061 @@
+package com.evgenii.jsevaluatortests;%0A%0Aimport android.test.ActivityInstrumentationTestCase2;%0Aimport android.test.suitebuilder.annotation.MediumTest;%0Aimport android.widget.TextView;%0A%0Apublic class LineEndingsActivityTests extends ActivityInstrumentationTestCase2%3CLineEndingsActivity%3E %7B%0A%0A%09private LineEndingsActivity mActivity;%0A%0A%09public LineEndingsActivityTests() %7B%0A%09%09super(LineEndingsActivity.class);%0A%09%7D%0A%0A%09@Override%0A%09protected void setUp() throws Exception %7B%0A%09%09super.setUp();%0A%09%09mActivity = getActivity();%0A%09%7D%0A%0A%09public void testPreconditions() %7B%0A%09%09assertNotNull(%22mActivity is null%22, mActivity);%0A%09%7D%0A%0A%09@MediumTest%0A%09public void testTestLineEndings() throws InterruptedException %7B%0A%09%09final TextView resultTextView = (TextView) mActivity%0A%09%09%09%09.findViewById(R.id.lineEndingsViewResult);%0A%0A%09%09final String expectedResult = %22Result: line endings parsed!%22;%0A%0A%09%09for (int i = 0; i %3C 100; i++) %7B%0A%09%09%09Thread.sleep(100);%0A%09%09%09if (resultTextView.getText().toString().equals(expectedResult)) %7B%0A%09%09%09%09break;%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%09assertEquals(expectedResult, resultTextView.getText().toString());%0A%09%7D%0A%7D%0A

Test line endings