tests: Add focus_highlight_empty_clip test
This commit is contained in:
parent
01ad20f8a3
commit
4e3b59b360
|
@ -0,0 +1,31 @@
|
|||
package {
|
||||
|
||||
import flash.display.MovieClip;
|
||||
import flash.display.Sprite;
|
||||
|
||||
[SWF(width="50", height="50", backgroundColor="#000000")]
|
||||
public class Test extends MovieClip {
|
||||
public function Test() {
|
||||
super();
|
||||
|
||||
var sprite:Sprite = new Sprite();
|
||||
sprite.graphics.beginFill(0xFF00FF);
|
||||
sprite.graphics.drawRect(0, 0, 20, 20);
|
||||
|
||||
// 1. Create a movie clip and add it as a child.
|
||||
var clip:MovieClip = new MovieClip();
|
||||
var clip2:MovieClip = new MovieClip();
|
||||
addChild(clip);
|
||||
clip.addChild(clip2);
|
||||
|
||||
clip.x = 15;
|
||||
clip.y = 15;
|
||||
|
||||
// 2. Focus the empty clip.
|
||||
stage.focus = clip;
|
||||
|
||||
// 3. Add some content to the clip after being focused.
|
||||
clip2.addChild(sprite);
|
||||
}
|
||||
}
|
||||
}
|
BIN
tests/tests/swfs/visual/focus_highlight/focus_highlight_empty_clip/output.expected.png
vendored
Normal file
BIN
tests/tests/swfs/visual/focus_highlight/focus_highlight_empty_clip/output.expected.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 145 B |
0
tests/tests/swfs/visual/focus_highlight/focus_highlight_empty_clip/output.txt
vendored
Normal file
0
tests/tests/swfs/visual/focus_highlight/focus_highlight_empty_clip/output.txt
vendored
Normal file
BIN
tests/tests/swfs/visual/focus_highlight/focus_highlight_empty_clip/test.swf
vendored
Normal file
BIN
tests/tests/swfs/visual/focus_highlight/focus_highlight_empty_clip/test.swf
vendored
Normal file
Binary file not shown.
|
@ -0,0 +1,6 @@
|
|||
num_ticks = 1
|
||||
|
||||
image_comparisons."output".trigger = 1
|
||||
|
||||
[player_options]
|
||||
with_renderer = { optional = false, sample_count = 1 }
|
Loading…
Reference in New Issue