bump
This commit is contained in:
@@ -8482,10 +8482,10 @@ type AxeNode struct {
|
||||
|
||||
// AxeCheckResult represents the result of a specific accessibility check
|
||||
type AxeCheckResult struct {
|
||||
ID string `json:"id"`
|
||||
Impact string `json:"impact"`
|
||||
Message string `json:"message"`
|
||||
Data map[string]interface{} `json:"data"`
|
||||
ID string `json:"id"`
|
||||
Impact string `json:"impact"`
|
||||
Message string `json:"message"`
|
||||
Data json.RawMessage `json:"data"` // Can be string or object, use RawMessage
|
||||
}
|
||||
|
||||
// AxeTestEngine represents the axe-core test engine information
|
||||
@@ -9266,10 +9266,10 @@ func (d *Daemon) testZoom(tabID string, zoomLevels []float64, timeout int) (*Zoo
|
||||
|
||||
// Get original viewport size
|
||||
originalViewport, err := page.Eval(`() => {
|
||||
return {
|
||||
return JSON.stringify({
|
||||
width: window.innerWidth,
|
||||
height: window.innerHeight
|
||||
};
|
||||
});
|
||||
}`)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to get viewport size: %w", err)
|
||||
@@ -9279,7 +9279,7 @@ func (d *Daemon) testZoom(tabID string, zoomLevels []float64, timeout int) (*Zoo
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
}
|
||||
err = json.Unmarshal([]byte(originalViewport.Value.String()), &viewportData)
|
||||
err = json.Unmarshal([]byte(originalViewport.Value.Str()), &viewportData)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to parse viewport data: %w", err)
|
||||
}
|
||||
@@ -9535,10 +9535,10 @@ func (d *Daemon) testReflow(tabID string, widths []int, timeout int) (*ReflowTes
|
||||
|
||||
// Get original viewport size
|
||||
originalViewport, err := page.Eval(`() => {
|
||||
return {
|
||||
return JSON.stringify({
|
||||
width: window.innerWidth,
|
||||
height: window.innerHeight
|
||||
};
|
||||
});
|
||||
}`)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to get viewport size: %w", err)
|
||||
@@ -9548,7 +9548,7 @@ func (d *Daemon) testReflow(tabID string, widths []int, timeout int) (*ReflowTes
|
||||
Width int `json:"width"`
|
||||
Height int `json:"height"`
|
||||
}
|
||||
err = json.Unmarshal([]byte(originalViewport.Value.String()), &viewportData)
|
||||
err = json.Unmarshal([]byte(originalViewport.Value.Str()), &viewportData)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to parse viewport data: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user