del: 删除错误test代码

This commit is contained in:
余泓铮
2025-07-21 14:29:50 +08:00
parent 6f3a8b1cbd
commit 097594abb3
2 changed files with 1 additions and 15 deletions

View File

@@ -29,10 +29,6 @@ func ParseTouchEvents(data string) ([]types.TouchEvent, error) {
event := types.TouchEvent{}
var err error
// Parse each field
if event.Timestamp, err = strconv.ParseInt(parts[0], 10, 64); err != nil {
return nil, fmt.Errorf("invalid timestamp: %v", err)
}
if event.X, err = strconv.ParseFloat(parts[1], 64); err != nil {
return nil, fmt.Errorf("invalid x coordinate: %v", err)
}
@@ -155,9 +151,6 @@ func TestTouchEventParsing(t *testing.T) {
}
event := events[0]
if event.Timestamp != 1752646457403 {
t.Errorf("Expected timestamp 1752646457403, got %d", event.Timestamp)
}
if event.X != 456.78418 {
t.Errorf("Expected X 456.78418, got %f", event.X)
}
@@ -229,12 +222,5 @@ func TestTouchEventSequenceValidation(t *testing.T) {
}
}
// Validate timestamps are in increasing order
for i := 1; i < len(events); i++ {
if events[i].Timestamp <= events[i-1].Timestamp {
t.Errorf("Event %d: timestamp should be greater than previous event", i)
}
}
t.Logf("Touch sequence validation passed: %d events with correct action sequence", len(events))
}

View File

@@ -24,7 +24,7 @@ func setupADBDriverExt(t *testing.T) *XTDriver {
require.Nil(t, err)
driverExt, err := NewXTDriver(driver,
option.WithCVService(option.CVServiceTypeVEDEM),
option.WithLLMService(option.DOUBAO_1_5_UI_TARS_250328),
// option.WithLLMService(option.DOUBAO_1_5_UI_TARS_250328),
)
require.Nil(t, err)
return driverExt