.vscode/tasks.json
author Emilio Cobos Álvarez <emilio@crisal.io>
Fri, 06 Jul 2018 04:30:07 +0200
changeset 814755 f56545a7fe9590ff892b7ac1a7e3869ae318c556
parent 708956 5d1f0d1c29a44e4d148cb32a19f91406f9bc808a
permissions -rw-r--r--
Bug 1473651: Track animated image status for generated content and content: url(). Summary: I thought of just moving the tracking to nsImageFrame instead of nsImageLoadingContent entirely, though that would mean I need to handle it also in nsImageBoxFrame and nsSVGImageFrame, which was even more duplicated code. Ideas for testing this welcome, though all our animated image test-cases are borked (all reftests in image/test/reftest/apng are disabled, and all the ones for gifs that have animations as well). I'll cross-ref this bug and bug 1473651 so that we can write a test for this once that's fixed. Test Plan: See above Reviewers: dholbert Tags: #secure-revision Bug #: 1473651 Differential Revision: https://phabricator.services.mozilla.com/D1994 MozReview-Commit-ID: FzPD4jdmskT

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "command": "${workspaceRoot}/mach",
    "windows": {
      "command": "\"\\mozilla-build\\start-shell.bat mach\""
    },
    "args": ["--log-no-times"],
    "echoCommand": true,
    "tasks": [
      {
        "label": "clobber-python",
        "type":"shell",
        "command": "${workspaceRoot}/mach",
        "windows": {
          "command": "\"\\mozilla-build\\start-shell.bat mach\""
        },
        "args": ["clobber", "python"],
        "problemMatcher": []
      },
      {
        "label": "configure",
        "type":"shell",
        "problemMatcher": []
      },
      {
        "label": "build",
        "type":"shell",
        "problemMatcher": {
          "owner": "cpp",
          "fileLocation": "absolute",
          "pattern": {
            "regexp": "^.*?([^\\s]*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
            "file": 1,
            "line": 2,
            "column": 3,
            "severity": 4,
            "message": 5
          }
        }
      },
      {
        "label": "build-binaries",
        "type":"shell",
        "command": "${workspaceRoot}/mach",
        "windows": {
          "command": "\"\\mozilla-build\\start-shell.bat mach\""
        },
        "args": ["--log-no-times", "build", "binaries"],
        "problemMatcher": {
          "owner": "cpp",
          "fileLocation": "absolute",
          "pattern": {
            "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
            "file": 1,
            "line": 2,
            "column": 3,
            "severity": 4,
            "message": 5
          }
        },
        "group": {
            "kind": "build",
            "isDefault": true
        }
      },
      {
        "label": "build-faster",
        "type":"shell",
        "command": "${workspaceRoot}/mach",
        "windows": {
          "command": "\"\\mozilla-build\\start-shell.bat mach\""
        },
        "args": ["--log-no-times", "build", "faster"],
        "problemMatcher": {
          "owner": "cpp",
          "fileLocation": "absolute",
          "pattern": {
            "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
            "file": 1,
            "line": 2,
            "column": 3,
            "severity": 4,
            "message": 5
          }
        }
      },
      {
        "label": "run",
        "type":"shell",
        "args": ["-purgecaches"],
        "problemMatcher": []
      },
      {
        "label": "lint-wo",
        "type":"shell",
        "command": "${workspaceRoot}/mach",
        "windows": {
          "command": "\"\\mozilla-build\\start-shell.bat mach\""
        },
        "args": ["lint", "-wo"],
        "problemMatcher": ["$eslint-stylish"]
      },
      {
        "label": "eslint",
        "type": "shell",
        "problemMatcher": ["$eslint-stylish"]
      },
      {
        "label": "eslint-fix",
        "type":"shell",
        "command": "${workspaceRoot}/mach",
        "windows": {
          "command": "\"\\mozilla-build\\start-shell.bat mach\""
        },
        "args": ["eslint", "--fix", "${file}"],
        "problemMatcher": ["$eslint-stylish"]
      },
      {
        "label": "test",
        "type":"shell",
        "args": ["${relativeFile}"],
        "group":"test",
        "presentation": {
            "reveal": "always",
            "panel": "new"
        }
      },
      {
        "label": "mochitest",
        "type":"shell",
        "args": ["${relativeFile}"],
        "problemMatcher": {
          "fileLocation": ["relative", "${workspaceRoot}"],
          "pattern": {
              "regexp": "^.*\\s+(TEST-UNEXPECTED-FAIL|TEST-UNEXPECTED-PASS)\\s+\\|\\s+([^\\s]*)\\s+\\|\\s+(.*)$",
              "severity": 1,
              "file": 2,
              "message": 3
          }
        },
        "presentation": {
            "reveal": "always",
            "panel": "new"
        }
      },
      {
        "label": "reftest",
        "type":"shell",
        "args": ["${relativeFile}"],
        "problemMatcher": {
          "fileLocation": ["absolute"],
          "pattern": {
              "regexp": "^.*\\s+(TEST-UNEXPECTED-FAIL|TEST-UNEXPECTED-PASS)\\s+\\|\\s+file:\/\/([^\\s]*)\\s+==\\s+[^\\s]*\\s+\\|\\s+(.*)$",
              "severity": 1,
              "file": 2,
              "message": 3
          }
        },
        "presentation": {
            "reveal": "always",
            "panel": "new"
        }
      },
      {
        "label": "xpcshell-test",
        "type":"shell",
        "args": ["${relativeFile}", "--sequential"],
        "problemMatcher": {
          "fileLocation": ["relative", "${workspaceRoot}"],
          "pattern": {
              "regexp": "^.*\\s+(FAIL|ERROR)\\s+\\[([^\\s]*)\\s+:\\s+(\\d+)\\]\\s+(.*)$",
              "severity": 1,
              "file": 2,
              "location": 3,
              "message": 4
          }
        },
        "presentation": {
              "reveal": "always",
              "panel": "new"
        }
      }
    ]
}