mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Merge backout
This commit is contained in:
commit
53f16e074a
@ -61,8 +61,9 @@ static void
|
||||
TouchBadMemory()
|
||||
{
|
||||
// XXX this should use the frame poisoning code
|
||||
gDummyCounter += *((int *) 0); // TODO annotation saying we know
|
||||
// this is crazy
|
||||
volatile int *p = 0;
|
||||
gDummyCounter += *p; // TODO annotation saying we know
|
||||
// this is crazy
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -17,6 +17,12 @@
|
||||
var p = document.getElementById('theplugin');
|
||||
|
||||
function startTest() {
|
||||
if (!p.hasWidget()) {
|
||||
todo(false, "This test is only relevant for windowed plugins");
|
||||
SimpleTest.finish();
|
||||
return;
|
||||
}
|
||||
|
||||
// Wait for the plugin to have painted once.
|
||||
var interval = setInterval(function() {
|
||||
if (!p.getPaintCount())
|
||||
@ -29,10 +35,6 @@
|
||||
}
|
||||
|
||||
function doTest() {
|
||||
if (!p.hasWidget()) {
|
||||
todo(false, "This test is only relevant for windowed plugins");
|
||||
return;
|
||||
}
|
||||
is(p.getClipRegionRectCount(), 1, "getClipRegionRectCount should be a single rect");
|
||||
is(p.getClipRegionRectEdge(0,2) - p.getClipRegionRectEdge(0,0), 100, "width of clip region rect");
|
||||
is(p.getClipRegionRectEdge(0,3) - p.getClipRegionRectEdge(0,1), 50, "height of clip region rect");
|
||||
|
Loading…
Reference in New Issue
Block a user