tests: Remove avm2/textfield_getlinetext test
The output.txt of this test was invalid, because it skipped a carriage return after one of the lines. This has of course something to do with the whole CR/LF/CRLF newline madness, as the trailing CR formed a CRLF with the "real" newline character LF, and (I suspect) git replaced it with LF ignoring CR completely, which badly influenced the current implementation. This test will be replaced with a proper test when the implementation is fixed.
This commit is contained in:
parent
9a6708f4b1
commit
4f457da07b
|
@ -1,31 +0,0 @@
|
|||
package {
|
||||
import flash.display.Sprite;
|
||||
import flash.text.TextField;
|
||||
import flash.events.FocusEvent;
|
||||
|
||||
public class Test extends Sprite {
|
||||
public function Test() {
|
||||
trace("///");
|
||||
var textField1 = new TextField();
|
||||
textField1.text = "hello world";
|
||||
trace(textField1.getLineText(0));
|
||||
try {
|
||||
trace(textField1.getLineText(1));
|
||||
} catch (e) {
|
||||
trace(e);
|
||||
}
|
||||
|
||||
trace("///");
|
||||
var textField2 = new TextField();
|
||||
textField2.multiline = true;
|
||||
textField2.text = "line 1\nline 2";
|
||||
trace(textField2.getLineText(0));
|
||||
trace(textField2.getLineText(1));
|
||||
|
||||
trace("///");
|
||||
var textField3 = new TextField();
|
||||
textField3.htmlText = "a <b>b</b> <i>i</i>";
|
||||
trace(textField3.getLineText(0));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
///
|
||||
hello world
|
||||
RangeError: Error #2006: The supplied index is out of bounds.
|
||||
///
|
||||
line 1
|
||||
line 2
|
||||
///
|
||||
a b i
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
num_ticks = 1
|
Loading…
Reference in New Issue