devtools/client/debugger/new/src/actions/tests/__snapshots__/pending-breakpoints.spec.js.snap
author Jason Laster <jlaster@mozilla.com>
Wed, 06 Mar 2019 17:00:37 +0000
changeset 520547 e9364ffb92a61f92c6c0989f546ac899b08fb3cf
parent 520438 2c2584c8276f00c69f24e2a3353aaf642c144f05
child 525822 bdc95cb6984914763304589aebd718c8da260351
permissions -rw-r--r--
Bug 1531350 - Add column breakpoints (w/ fix for sourcemaps-reload). r=loganfsmyth Differential Revision: https://phabricator.services.mozilla.com/D22329

// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`initializing when pending breakpoints exist in prefs syncs pending breakpoints 1`] = `
Object {
  "http://localhost:8000/examples/bar.js:5:2": Object {
    "astLocation": Object {
      "index": 0,
      "name": undefined,
      "offset": Object {
        "line": 5,
      },
    },
    "disabled": false,
    "generatedLocation": Object {
      "column": 2,
      "line": 5,
      "sourceUrl": "http://localhost:8000/examples/bar.js",
    },
    "location": Object {
      "column": 2,
      "line": 5,
      "sourceId": "",
      "sourceUrl": "http://localhost:8000/examples/bar.js",
    },
    "options": Object {
      "condition": null,
      "hidden": false,
    },
  },
}
`;

exports[`when adding breakpoints a corresponding pending breakpoint should be added 1`] = `
Object {
  "astLocation": Object {
    "index": 0,
    "name": undefined,
    "offset": Object {
      "column": 1,
      "line": 5,
      "sourceId": "foo.js",
      "sourceUrl": "http://localhost:8000/examples/foo.js",
    },
  },
  "disabled": false,
  "generatedLocation": Object {
    "column": 1,
    "line": 5,
    "sourceUrl": "http://localhost:8000/examples/foo.js",
  },
  "location": Object {
    "column": 1,
    "line": 5,
    "sourceUrl": "http://localhost:8000/examples/foo.js",
  },
  "options": Object {
    "condition": null,
    "hidden": false,
    "logValue": null,
  },
}
`;

exports[`when adding breakpoints adding and deleting breakpoints add a corresponding pendingBreakpoint for each addition 1`] = `
Object {
  "astLocation": Object {
    "index": 0,
    "name": undefined,
    "offset": Object {
      "column": 0,
      "line": 5,
      "sourceId": "foo",
      "sourceUrl": "http://localhost:8000/examples/foo",
    },
  },
  "disabled": false,
  "generatedLocation": Object {
    "column": 0,
    "line": 5,
    "sourceUrl": "http://localhost:8000/examples/foo",
  },
  "location": Object {
    "column": 0,
    "line": 5,
    "sourceUrl": "http://localhost:8000/examples/foo",
  },
  "options": Object {
    "condition": null,
    "hidden": false,
    "logValue": null,
  },
}
`;

exports[`when adding breakpoints adding and deleting breakpoints add a corresponding pendingBreakpoint for each addition 2`] = `
Object {
  "astLocation": Object {
    "index": 0,
    "name": undefined,
    "offset": Object {
      "column": 0,
      "line": 5,
      "sourceId": "foo2",
      "sourceUrl": "http://localhost:8000/examples/foo2",
    },
  },
  "disabled": false,
  "generatedLocation": Object {
    "column": 0,
    "line": 5,
    "sourceUrl": "http://localhost:8000/examples/foo2",
  },
  "location": Object {
    "column": 0,
    "line": 5,
    "sourceUrl": "http://localhost:8000/examples/foo2",
  },
  "options": Object {
    "condition": null,
    "hidden": false,
    "logValue": null,
  },
}
`;