* add failing test * assert order of events * defer attaching of iframe till FullSnapshot is done Fixes: https://github.com/rrweb-io/rrweb/issues/567 * correct event order in iframe integration test snapshot * trigger build * trigger build * Move settimeout responsibility to snapshot https://github.com/rrweb-io/rrweb-snapshot/pull/78 * upgrade rrweb-snapshot to 1.1.4 * DRY record tests * cleanup * Upgrade puppeteer to 9.1.1 for (hopefully) more consistent behaviour between CI and development * make input bigger to prevent triggering scroll events * page.waitFor is deprecated more info: https://github.com/puppeteer/puppeteer/issues/6214 * Set os and distro for Travis ci Co-authored-by: yz-yu <yanzhen@smartx.com>
8114 lines
227 KiB
Plaintext
8114 lines
227 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`attributes 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 3
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"mutation observer\\",
|
|
\\"id\\": 7
|
|
}
|
|
],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"ul\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
}
|
|
],
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 15
|
|
}
|
|
],
|
|
\\"id\\": 14
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
}
|
|
],
|
|
\\"id\\": 2
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [
|
|
{
|
|
\\"id\\": 4,
|
|
\\"attributes\\": {
|
|
\\"test\\": \\"true\\"
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [
|
|
{
|
|
\\"parentId\\": 4,
|
|
\\"id\\": 9
|
|
}
|
|
],
|
|
\\"adds\\": []
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`block 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"http-equiv\\": \\"X-UA-Compatible\\",
|
|
\\"content\\": \\"ie=edge\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Block record\\",
|
|
\\"id\\": 13
|
|
}
|
|
],
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"rr-block\\",
|
|
\\"rr_width\\": \\"50px\\",
|
|
\\"rr_height\\": \\"50px\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 21
|
|
}
|
|
],
|
|
\\"id\\": 20
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
|
|
\\"id\\": 22
|
|
}
|
|
],
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`canvas 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"canvas\\",
|
|
\\"id\\": 11
|
|
}
|
|
],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"canvas\\",
|
|
\\"attributes\\": {
|
|
\\"id\\": \\"myCanvas\\",
|
|
\\"width\\": \\"200\\",
|
|
\\"height\\": \\"100\\",
|
|
\\"style\\": \\"border: 1px solid #000000;\\",
|
|
\\"rr_dataURL\\": \\"LOOKS LIKE WE COULD NOT GET STABLE BASE64 FROM SAME IMAGE.\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
}
|
|
],
|
|
\\"id\\": 16
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 20
|
|
}
|
|
],
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 21
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 23
|
|
}
|
|
],
|
|
\\"id\\": 22
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
|
|
\\"id\\": 24
|
|
}
|
|
],
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 9,
|
|
\\"id\\": 16,
|
|
\\"property\\": \\"moveTo\\",
|
|
\\"args\\": [
|
|
0,
|
|
0
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 9,
|
|
\\"id\\": 16,
|
|
\\"property\\": \\"lineTo\\",
|
|
\\"args\\": [
|
|
200,
|
|
100
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 9,
|
|
\\"id\\": 16,
|
|
\\"property\\": \\"stroke\\",
|
|
\\"args\\": []
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`character-data 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 3
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"mutation observer\\",
|
|
\\"id\\": 7
|
|
}
|
|
],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"ul\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
}
|
|
],
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 15
|
|
}
|
|
],
|
|
\\"id\\": 14
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
}
|
|
],
|
|
\\"id\\": 2
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [
|
|
{
|
|
\\"parentId\\": 4,
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"parentId\\": 6,
|
|
\\"id\\": 7
|
|
}
|
|
],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 6,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"mutated\\",
|
|
\\"id\\": 17
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`child-list 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 3
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"mutation observer\\",
|
|
\\"id\\": 7
|
|
}
|
|
],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"ul\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
}
|
|
],
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 15
|
|
}
|
|
],
|
|
\\"id\\": 14
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
}
|
|
],
|
|
\\"id\\": 2
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [
|
|
{
|
|
\\"parentId\\": 4,
|
|
\\"id\\": 9
|
|
}
|
|
],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 6,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 17
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`form 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"http-equiv\\": \\"X-UA-Compatible\\",
|
|
\\"content\\": \\"ie=edge\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"form fields\\",
|
|
\\"id\\": 13
|
|
}
|
|
],
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\",
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n\\",
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"form\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"text\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 21
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"text\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 22
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 23
|
|
}
|
|
],
|
|
\\"id\\": 20
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 24
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"radio\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 26
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"radio\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 27
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 28
|
|
}
|
|
],
|
|
\\"id\\": 25
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 29
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"checkbox\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 31
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"checkbox\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 32
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 33
|
|
}
|
|
],
|
|
\\"id\\": 30
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 34
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"textarea\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 36
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"textarea\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"\\",
|
|
\\"id\\": \\"\\",
|
|
\\"cols\\": \\"30\\",
|
|
\\"rows\\": \\"10\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 37
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 38
|
|
}
|
|
],
|
|
\\"id\\": 35
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 39
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"select\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 41
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"select\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"\\",
|
|
\\"id\\": \\"\\",
|
|
\\"value\\": \\"1\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 43
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"option\\",
|
|
\\"attributes\\": {
|
|
\\"value\\": \\"1\\",
|
|
\\"selected\\": true
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"1\\",
|
|
\\"id\\": 45
|
|
}
|
|
],
|
|
\\"id\\": 44
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 46
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"option\\",
|
|
\\"attributes\\": {
|
|
\\"value\\": \\"2\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"2\\",
|
|
\\"id\\": 48
|
|
}
|
|
],
|
|
\\"id\\": 47
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 49
|
|
}
|
|
],
|
|
\\"id\\": 42
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 50
|
|
}
|
|
],
|
|
\\"id\\": 40
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 51
|
|
}
|
|
],
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 52
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 54
|
|
}
|
|
],
|
|
\\"id\\": 53
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\\\n\\",
|
|
\\"id\\": 55
|
|
}
|
|
],
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"t\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"te\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"tes\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"test\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 1,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 6,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 0,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 2,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"on\\",
|
|
\\"isChecked\\": true,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 1,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 6,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 0,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 2,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"on\\",
|
|
\\"isChecked\\": true,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 6,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"t\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"te\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"tex\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"text\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"texta\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textar\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textare\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea \\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea t\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea te\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea tes\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea test\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"1\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 42
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`frozen 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 3
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"mutation observer\\",
|
|
\\"id\\": 7
|
|
}
|
|
],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"ul\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
}
|
|
],
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 15
|
|
}
|
|
],
|
|
\\"id\\": 14
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
}
|
|
],
|
|
\\"id\\": 2
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [
|
|
{
|
|
\\"id\\": 17,
|
|
\\"attributes\\": {
|
|
\\"foo\\": \\"bar\\"
|
|
}
|
|
},
|
|
{
|
|
\\"id\\": 4,
|
|
\\"attributes\\": {
|
|
\\"test\\": \\"true\\"
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 9,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {
|
|
\\"foo\\": \\"bar\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 17
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`iframe 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Main\\",
|
|
\\"id\\": 11
|
|
}
|
|
],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"style\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n iframe {\\\\n width: 500px;\\\\n height: 500px;\\\\n }\\\\n \\",
|
|
\\"isStyle\\": true,
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 15
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 16
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"iframe\\",
|
|
\\"attributes\\": {
|
|
\\"id\\": \\"one\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 20
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 22
|
|
}
|
|
],
|
|
\\"id\\": 21
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n \\",
|
|
\\"id\\": 23
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 25
|
|
}
|
|
],
|
|
\\"id\\": 24
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n\\",
|
|
\\"id\\": 26
|
|
}
|
|
],
|
|
\\"id\\": 17
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 19,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 27,
|
|
\\"id\\": 29
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 27,
|
|
\\"id\\": 30
|
|
}
|
|
],
|
|
\\"rootId\\": 27,
|
|
\\"id\\": 28
|
|
}
|
|
],
|
|
\\"id\\": 27
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [],
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"isAttachIframe\\": true
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 17,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"iframe\\",
|
|
\\"attributes\\": {
|
|
\\"id\\": \\"two\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 31
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 31,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 33
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 36
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 37
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 38
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 39
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 40
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Frame 1\\",
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 42
|
|
}
|
|
],
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 41
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 43
|
|
}
|
|
],
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 35
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 44
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n frame 1\\\\n \\",
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 46
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"iframe\\",
|
|
\\"attributes\\": {
|
|
\\"id\\": \\"three\\",
|
|
\\"frameborder\\": \\"0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 47
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 48
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"iframe\\",
|
|
\\"attributes\\": {
|
|
\\"id\\": \\"four\\",
|
|
\\"frameborder\\": \\"0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 49
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n\\\\n\\",
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 50
|
|
}
|
|
],
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 45
|
|
}
|
|
],
|
|
\\"rootId\\": 32,
|
|
\\"id\\": 34
|
|
}
|
|
],
|
|
\\"id\\": 32
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [],
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"isAttachIframe\\": true
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 47,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 51,
|
|
\\"id\\": 53
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 51,
|
|
\\"id\\": 54
|
|
}
|
|
],
|
|
\\"rootId\\": 51,
|
|
\\"id\\": 52
|
|
}
|
|
],
|
|
\\"id\\": 51
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [],
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"isAttachIframe\\": true
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 49,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 56
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 59
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 60
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 61
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 62
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 63
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Frame 2\\",
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 65
|
|
}
|
|
],
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 64
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 66
|
|
}
|
|
],
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 58
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 67
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n frame 2\\\\n \\\\n \\",
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 69
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 71
|
|
}
|
|
],
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 70
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n\\",
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 72
|
|
}
|
|
],
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 68
|
|
}
|
|
],
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 57
|
|
}
|
|
],
|
|
\\"id\\": 55
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [],
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"isAttachIframe\\": true
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 68,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"iframe\\",
|
|
\\"attributes\\": {
|
|
\\"id\\": \\"five\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 55,
|
|
\\"id\\": 73
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 73,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 74,
|
|
\\"id\\": 76
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"rootId\\": 74,
|
|
\\"id\\": 77
|
|
}
|
|
],
|
|
\\"rootId\\": 74,
|
|
\\"id\\": 75
|
|
}
|
|
],
|
|
\\"id\\": 74
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [],
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"isAttachIframe\\": true
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`ignore 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"http-equiv\\": \\"X-UA-Compatible\\",
|
|
\\"content\\": \\"ie=edge\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"ignore fields\\",
|
|
\\"id\\": 13
|
|
}
|
|
],
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"form\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"password\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 21
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"password\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 22
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 23
|
|
}
|
|
],
|
|
\\"id\\": 20
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 24
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"ignore text\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 26
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"text\\",
|
|
\\"class\\": \\"rr-ignore\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 27
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 28
|
|
}
|
|
],
|
|
\\"id\\": 25
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 29
|
|
}
|
|
],
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 30
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 32
|
|
}
|
|
],
|
|
\\"id\\": 31
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
|
|
\\"id\\": 33
|
|
}
|
|
],
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 6,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 27
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`log`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"http-equiv\\": \\"X-UA-Compatible\\",
|
|
\\"content\\": \\"ie=edge\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Log record\\",
|
|
\\"id\\": 13
|
|
}
|
|
],
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 19
|
|
}
|
|
],
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
|
|
\\"id\\": 20
|
|
}
|
|
],
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"assert\\",
|
|
\\"payload\\": [
|
|
\\"true\\",
|
|
\\"\\"assert\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"count\\",
|
|
\\"payload\\": [
|
|
\\"\\"count\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"countReset\\",
|
|
\\"payload\\": [
|
|
\\"\\"count\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"debug\\",
|
|
\\"payload\\": [
|
|
\\"\\"debug\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"dir\\",
|
|
\\"payload\\": [
|
|
\\"\\"dir\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"dirxml\\",
|
|
\\"payload\\": [
|
|
\\"\\"dirxml\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"group\\",
|
|
\\"payload\\": []
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"groupCollapsed\\",
|
|
\\"payload\\": []
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"info\\",
|
|
\\"payload\\": [
|
|
\\"\\"info\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"log\\",
|
|
\\"payload\\": [
|
|
\\"\\"log\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"table\\",
|
|
\\"payload\\": [
|
|
\\"\\"table\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"time\\",
|
|
\\"payload\\": []
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"timeEnd\\",
|
|
\\"payload\\": []
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"timeLog\\",
|
|
\\"payload\\": []
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"trace\\",
|
|
\\"payload\\": [
|
|
\\"\\"trace\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"warn\\",
|
|
\\"payload\\": [
|
|
\\"\\"warn\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"clear\\",
|
|
\\"payload\\": []
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`log 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"http-equiv\\": \\"X-UA-Compatible\\",
|
|
\\"content\\": \\"ie=edge\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Log record\\",
|
|
\\"id\\": 13
|
|
}
|
|
],
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 19
|
|
}
|
|
],
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
|
|
\\"id\\": 20
|
|
}
|
|
],
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"assert\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:2:37\\"
|
|
],
|
|
\\"payload\\": [
|
|
\\"true\\",
|
|
\\"\\\\\\"assert\\\\\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"count\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:3:37\\"
|
|
],
|
|
\\"payload\\": [
|
|
\\"\\\\\\"count\\\\\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"countReset\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:4:37\\"
|
|
],
|
|
\\"payload\\": [
|
|
\\"\\\\\\"count\\\\\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"debug\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:5:37\\"
|
|
],
|
|
\\"payload\\": [
|
|
\\"\\\\\\"debug\\\\\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"dir\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:6:37\\"
|
|
],
|
|
\\"payload\\": [
|
|
\\"\\\\\\"dir\\\\\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"dirxml\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:7:37\\"
|
|
],
|
|
\\"payload\\": [
|
|
\\"\\\\\\"dirxml\\\\\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"group\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:8:37\\"
|
|
],
|
|
\\"payload\\": []
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"groupCollapsed\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:9:37\\"
|
|
],
|
|
\\"payload\\": []
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"info\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:10:37\\"
|
|
],
|
|
\\"payload\\": [
|
|
\\"\\\\\\"info\\\\\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"log\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:11:37\\"
|
|
],
|
|
\\"payload\\": [
|
|
\\"\\\\\\"log\\\\\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"table\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:12:37\\"
|
|
],
|
|
\\"payload\\": [
|
|
\\"\\\\\\"table\\\\\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"time\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:13:37\\"
|
|
],
|
|
\\"payload\\": []
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"timeEnd\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:14:37\\"
|
|
],
|
|
\\"payload\\": []
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"timeLog\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:15:37\\"
|
|
],
|
|
\\"payload\\": []
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"trace\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:16:37\\"
|
|
],
|
|
\\"payload\\": [
|
|
\\"\\\\\\"trace\\\\\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"warn\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:17:37\\"
|
|
],
|
|
\\"payload\\": [
|
|
\\"\\\\\\"warn\\\\\\"\\"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 11,
|
|
\\"level\\": \\"clear\\",
|
|
\\"trace\\": [
|
|
\\"__puppeteer_evaluation_script__:18:37\\"
|
|
],
|
|
\\"payload\\": []
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`mask 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"http-equiv\\": \\"X-UA-Compatible\\",
|
|
\\"content\\": \\"ie=edge\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"form fields\\",
|
|
\\"id\\": 13
|
|
}
|
|
],
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\",
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n\\",
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"form\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"text\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 21
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"text\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 22
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 23
|
|
}
|
|
],
|
|
\\"id\\": 20
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 24
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"radio\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 26
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"radio\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 27
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 28
|
|
}
|
|
],
|
|
\\"id\\": 25
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 29
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"checkbox\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 31
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"checkbox\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 32
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 33
|
|
}
|
|
],
|
|
\\"id\\": 30
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 34
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"textarea\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 36
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"textarea\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"\\",
|
|
\\"id\\": \\"\\",
|
|
\\"cols\\": \\"30\\",
|
|
\\"rows\\": \\"10\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 37
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 38
|
|
}
|
|
],
|
|
\\"id\\": 35
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 39
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"select\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 41
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"select\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"\\",
|
|
\\"id\\": \\"\\",
|
|
\\"value\\": \\"*\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 43
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"option\\",
|
|
\\"attributes\\": {
|
|
\\"value\\": \\"1\\",
|
|
\\"selected\\": true
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"1\\",
|
|
\\"id\\": 45
|
|
}
|
|
],
|
|
\\"id\\": 44
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 46
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"option\\",
|
|
\\"attributes\\": {
|
|
\\"value\\": \\"2\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"2\\",
|
|
\\"id\\": 48
|
|
}
|
|
],
|
|
\\"id\\": 47
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 49
|
|
}
|
|
],
|
|
\\"id\\": 42
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 50
|
|
}
|
|
],
|
|
\\"id\\": 40
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 51
|
|
}
|
|
],
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 52
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 54
|
|
}
|
|
],
|
|
\\"id\\": 53
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\\\n\\",
|
|
\\"id\\": 55
|
|
}
|
|
],
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"*\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"**\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"***\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"****\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 1,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 6,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 0,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 2,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"on\\",
|
|
\\"isChecked\\": true,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 1,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 6,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 0,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 2,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"on\\",
|
|
\\"isChecked\\": true,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 6,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"*\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"**\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"***\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"****\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"*****\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"******\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"*******\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"********\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"*********\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"**********\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"***********\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"************\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"*************\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"*\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 42
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`mask-character-data 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 3
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"mutation observer\\",
|
|
\\"id\\": 7
|
|
}
|
|
],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"ul\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
}
|
|
],
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 15
|
|
}
|
|
],
|
|
\\"id\\": 14
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
}
|
|
],
|
|
\\"id\\": 2
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [
|
|
{
|
|
\\"id\\": 6,
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"rr-mask\\"
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [
|
|
{
|
|
\\"parentId\\": 6,
|
|
\\"id\\": 7
|
|
}
|
|
],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 9,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"rr-mask\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 17
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 17,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"*** **** ****\\",
|
|
\\"id\\": 18
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 6,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"*******\\",
|
|
\\"id\\": 19
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`mask-text 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"http-equiv\\": \\"X-UA-Compatible\\",
|
|
\\"content\\": \\"ie=edge\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Mask text\\",
|
|
\\"id\\": 13
|
|
}
|
|
],
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"rr-mask\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"*****\\",
|
|
\\"id\\": 19
|
|
}
|
|
],
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 20
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"rr-mask\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 22
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"*****\\",
|
|
\\"id\\": 24
|
|
}
|
|
],
|
|
\\"id\\": 23
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 25
|
|
}
|
|
],
|
|
\\"id\\": 21
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 26
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"data-masking\\": \\"true\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 28
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 30
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"*****\\",
|
|
\\"id\\": 32
|
|
}
|
|
],
|
|
\\"id\\": 31
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 33
|
|
}
|
|
],
|
|
\\"id\\": 29
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 34
|
|
}
|
|
],
|
|
\\"id\\": 27
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 35
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 37
|
|
}
|
|
],
|
|
\\"id\\": 36
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
|
|
\\"id\\": 38
|
|
}
|
|
],
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`mask-text-fn 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"http-equiv\\": \\"X-UA-Compatible\\",
|
|
\\"content\\": \\"ie=edge\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Mask text\\",
|
|
\\"id\\": 13
|
|
}
|
|
],
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"rr-mask\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"****1\\",
|
|
\\"id\\": 19
|
|
}
|
|
],
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 20
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"rr-mask\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 22
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"****2\\",
|
|
\\"id\\": 24
|
|
}
|
|
],
|
|
\\"id\\": 23
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 25
|
|
}
|
|
],
|
|
\\"id\\": 21
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 26
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"data-masking\\": \\"true\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 28
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 30
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"****3\\",
|
|
\\"id\\": 32
|
|
}
|
|
],
|
|
\\"id\\": 31
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 33
|
|
}
|
|
],
|
|
\\"id\\": 29
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 34
|
|
}
|
|
],
|
|
\\"id\\": 27
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 35
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 37
|
|
}
|
|
],
|
|
\\"id\\": 36
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
|
|
\\"id\\": 38
|
|
}
|
|
],
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`maskInputOptions 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"http-equiv\\": \\"X-UA-Compatible\\",
|
|
\\"content\\": \\"ie=edge\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"form fields\\",
|
|
\\"id\\": 13
|
|
}
|
|
],
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\",
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n\\",
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"form\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"text\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 21
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"text\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 22
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 23
|
|
}
|
|
],
|
|
\\"id\\": 20
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 24
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"radio\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 26
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"radio\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 27
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 28
|
|
}
|
|
],
|
|
\\"id\\": 25
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 29
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"checkbox\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 31
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"checkbox\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 32
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 33
|
|
}
|
|
],
|
|
\\"id\\": 30
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 34
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"textarea\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 36
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"textarea\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"\\",
|
|
\\"id\\": \\"\\",
|
|
\\"cols\\": \\"30\\",
|
|
\\"rows\\": \\"10\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 37
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 38
|
|
}
|
|
],
|
|
\\"id\\": 35
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 39
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"select\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 41
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"select\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"\\",
|
|
\\"id\\": \\"\\",
|
|
\\"value\\": \\"1\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 43
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"option\\",
|
|
\\"attributes\\": {
|
|
\\"value\\": \\"1\\",
|
|
\\"selected\\": true
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"1\\",
|
|
\\"id\\": 45
|
|
}
|
|
],
|
|
\\"id\\": 44
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 46
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"option\\",
|
|
\\"attributes\\": {
|
|
\\"value\\": \\"2\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"2\\",
|
|
\\"id\\": 48
|
|
}
|
|
],
|
|
\\"id\\": 47
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 49
|
|
}
|
|
],
|
|
\\"id\\": 42
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 50
|
|
}
|
|
],
|
|
\\"id\\": 40
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 51
|
|
}
|
|
],
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 52
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 54
|
|
}
|
|
],
|
|
\\"id\\": 53
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\\\n\\",
|
|
\\"id\\": 55
|
|
}
|
|
],
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"t\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"te\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"tes\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"test\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 1,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 6,
|
|
\\"id\\": 22
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 0,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 2,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"on\\",
|
|
\\"isChecked\\": true,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 1,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 6,
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 0,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 2,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"on\\",
|
|
\\"isChecked\\": true,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 6,
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"t\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"te\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"tex\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"text\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"texta\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textar\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textare\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea \\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea t\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea te\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea tes\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"textarea test\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"1\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 42
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`move-node-1 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 3
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
}
|
|
],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"i\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"b\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"1\\",
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
}
|
|
],
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 18
|
|
}
|
|
],
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 21
|
|
}
|
|
],
|
|
\\"id\\": 20
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
|
|
\\"id\\": 22
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
}
|
|
],
|
|
\\"id\\": 2
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [
|
|
{
|
|
\\"parentId\\": 4,
|
|
\\"id\\": 11
|
|
}
|
|
],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 6,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 11
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 11,
|
|
\\"nextId\\": 13,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 11,
|
|
\\"nextId\\": 18,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"i\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 13
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 13,
|
|
\\"nextId\\": 15,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 13,
|
|
\\"nextId\\": 17,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"b\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 15
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 15,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"1\\",
|
|
\\"id\\": 16
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 13,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 11,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 18
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`move-node-2 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 3
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
}
|
|
],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"i\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"b\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"1\\",
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
}
|
|
],
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 18
|
|
}
|
|
],
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 21
|
|
}
|
|
],
|
|
\\"id\\": 20
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
|
|
\\"id\\": 22
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
}
|
|
],
|
|
\\"id\\": 2
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [
|
|
{
|
|
\\"parentId\\": 4,
|
|
\\"id\\": 11
|
|
}
|
|
],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 11,
|
|
\\"nextId\\": 13,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 11,
|
|
\\"nextId\\": 18,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"i\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 13
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 13,
|
|
\\"nextId\\": 15,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 13,
|
|
\\"nextId\\": 17,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"b\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 15
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 15,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"1\\",
|
|
\\"id\\": 16
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 13,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 17
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 11,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 18
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 4,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 23
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 23,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 11
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`react-styled-components 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"http-equiv\\": \\"X-UA-Compatible\\",
|
|
\\"content\\": \\"ie=edge\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"react styled components\\",
|
|
\\"id\\": 13
|
|
}
|
|
],
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"style\\",
|
|
\\"attributes\\": {
|
|
\\"data-styled\\": \\"active\\",
|
|
\\"data-styled-version\\": \\"5.0.1\\",
|
|
\\"_cssText\\": \\".ixzlRK { font-size: 1.5em; text-align: center; color: palevioletred; }.eOXmez { font-size: 1.5em; text-align: center; color: rebeccapurple; }.bJCmFu { padding: 4em; background: papayawhip; }\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\",
|
|
\\"isStyle\\": true,
|
|
\\"id\\": 18
|
|
}
|
|
],
|
|
\\"id\\": 17
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 21
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"id\\": \\"app\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"section\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"sc-AxirZ bJCmFu\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"h1\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"sc-AxjAm ixzlRK\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Hello World!\\",
|
|
\\"id\\": 25
|
|
}
|
|
],
|
|
\\"id\\": 24
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"h1\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"sc-AxjAm eOXmez toggle\\",
|
|
\\"color\\": \\"rebeccapurple\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Hello World!\\",
|
|
\\"id\\": 27
|
|
}
|
|
],
|
|
\\"id\\": 26
|
|
}
|
|
],
|
|
\\"id\\": 23
|
|
}
|
|
],
|
|
\\"id\\": 22
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 28
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {
|
|
\\"src\\": \\"https://cdn.jsdelivr.net/npm/react@16/umd/react.production.min.js\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 29
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 30
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {
|
|
\\"src\\": \\"https://cdn.jsdelivr.net/npm/react-dom@16/umd/react-dom.production.min.js\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 31
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 32
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {
|
|
\\"src\\": \\"https://cdn.jsdelivr.net/npm/react-is@16.13.1/umd/react-is.production.min.js\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 33
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 34
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {
|
|
\\"src\\": \\"https://cdn.jsdelivr.net/npm/styled-components@5.0.1/dist/styled-components.min.js\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 35
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 36
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {
|
|
\\"src\\": \\"https://cdn.jsdelivr.net/npm/babel-standalone@6/babel.min.js\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 37
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 38
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"text/babel\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 40
|
|
}
|
|
],
|
|
\\"id\\": 39
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 41
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 43
|
|
}
|
|
],
|
|
\\"id\\": 42
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
|
|
\\"id\\": 44
|
|
}
|
|
],
|
|
\\"id\\": 20
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 1,
|
|
\\"id\\": 26
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 0,
|
|
\\"id\\": 26
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 2,
|
|
\\"id\\": 26
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 8,
|
|
\\"id\\": 17,
|
|
\\"adds\\": [
|
|
{
|
|
\\"rule\\": \\".pqkNE{font-size:1.5em;text-align:center;color:pink;}\\",
|
|
\\"index\\": 2
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [
|
|
{
|
|
\\"id\\": 26,
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"sc-AxjAm pqkNE toggle\\",
|
|
\\"color\\": \\"pink\\"
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [],
|
|
\\"adds\\": []
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`select2 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"http-equiv\\": \\"X-UA-Compatible\\",
|
|
\\"content\\": \\"ie=edge\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Select2 3.5\\",
|
|
\\"id\\": 13
|
|
}
|
|
],
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 14
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"link\\",
|
|
\\"attributes\\": {
|
|
\\"rel\\": \\"stylesheet\\",
|
|
\\"href\\": \\"https://cdn.jsdelivr.net/npm/select2@3.5.1/select2.css\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 15
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\",
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\",
|
|
\\"id\\": 17
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"blockquote\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n Select2 is a jQuery replacement for select boxes.\\\\n \\",
|
|
\\"id\\": 21
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"br\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 22
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n In the 3.5 version it use a quite complicated DOM generation strategy which is a good battle-test for rrweb's recorder.\\\\n \\",
|
|
\\"id\\": 23
|
|
}
|
|
],
|
|
\\"id\\": 20
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 24
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-container\\",
|
|
\\"id\\": \\"s2id_el\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"a\\",
|
|
\\"attributes\\": {
|
|
\\"href\\": \\"javascript:void(0)\\",
|
|
\\"class\\": \\"select2-choice\\",
|
|
\\"tabindex\\": \\"-1\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 27
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-chosen\\",
|
|
\\"id\\": \\"select2-chosen-1\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"A\\",
|
|
\\"id\\": 29
|
|
}
|
|
],
|
|
\\"id\\": 28
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"abbr\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-search-choice-close\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 30
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 31
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-arrow\\",
|
|
\\"role\\": \\"presentation\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"b\\",
|
|
\\"attributes\\": {
|
|
\\"role\\": \\"presentation\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 33
|
|
}
|
|
],
|
|
\\"id\\": 32
|
|
}
|
|
],
|
|
\\"id\\": 26
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"s2id_autogen1\\",
|
|
\\"class\\": \\"select2-offscreen\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 34
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-focusser select2-offscreen\\",
|
|
\\"type\\": \\"text\\",
|
|
\\"aria-haspopup\\": \\"true\\",
|
|
\\"role\\": \\"button\\",
|
|
\\"aria-labelledby\\": \\"select2-chosen-1\\",
|
|
\\"id\\": \\"s2id_autogen1\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 35
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-drop select2-display-none select2-with-searchbox\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 37
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-search\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 39
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"s2id_autogen1_search\\",
|
|
\\"class\\": \\"select2-offscreen\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 40
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 41
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"text\\",
|
|
\\"autocomplete\\": \\"off\\",
|
|
\\"autocorrect\\": \\"off\\",
|
|
\\"autocapitalize\\": \\"off\\",
|
|
\\"spellcheck\\": \\"false\\",
|
|
\\"class\\": \\"select2-input\\",
|
|
\\"role\\": \\"combobox\\",
|
|
\\"aria-expanded\\": \\"true\\",
|
|
\\"aria-autocomplete\\": \\"list\\",
|
|
\\"aria-owns\\": \\"select2-results-1\\",
|
|
\\"id\\": \\"s2id_autogen1_search\\",
|
|
\\"placeholder\\": \\"\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 42
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 43
|
|
}
|
|
],
|
|
\\"id\\": 38
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 44
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"ul\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-results\\",
|
|
\\"role\\": \\"listbox\\",
|
|
\\"id\\": \\"select2-results-1\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 46
|
|
}
|
|
],
|
|
\\"id\\": 45
|
|
}
|
|
],
|
|
\\"id\\": 36
|
|
}
|
|
],
|
|
\\"id\\": 25
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"select\\",
|
|
\\"attributes\\": {
|
|
\\"id\\": \\"el\\",
|
|
\\"tabindex\\": \\"-1\\",
|
|
\\"title\\": \\"\\",
|
|
\\"style\\": \\"display: none;\\",
|
|
\\"value\\": \\"a\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 48
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"option\\",
|
|
\\"attributes\\": {
|
|
\\"value\\": \\"a\\",
|
|
\\"selected\\": true
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"A\\",
|
|
\\"id\\": 50
|
|
}
|
|
],
|
|
\\"id\\": 49
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 51
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"option\\",
|
|
\\"attributes\\": {
|
|
\\"value\\": \\"b\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"B\\",
|
|
\\"id\\": 53
|
|
}
|
|
],
|
|
\\"id\\": 52
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 54
|
|
}
|
|
],
|
|
\\"id\\": 47
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 55
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {
|
|
\\"src\\": \\"https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 56
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 57
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {
|
|
\\"src\\": \\"https://cdn.jsdelivr.net/npm/select2@3.5.2-browserify/select2.min.js\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 58
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 59
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 61
|
|
}
|
|
],
|
|
\\"id\\": 60
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {
|
|
\\"role\\": \\"status\\",
|
|
\\"aria-live\\": \\"polite\\",
|
|
\\"class\\": \\"select2-hidden-accessible\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 62
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 63
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 65
|
|
}
|
|
],
|
|
\\"id\\": 64
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\",
|
|
\\"id\\": 66
|
|
}
|
|
],
|
|
\\"id\\": 18
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 1,
|
|
\\"id\\": 26
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 42
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [
|
|
{
|
|
\\"id\\": 25,
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-container select2-dropdown-open select2-container-active\\"
|
|
}
|
|
},
|
|
{
|
|
\\"id\\": 36,
|
|
\\"attributes\\": {
|
|
\\"id\\": \\"select2-drop\\",
|
|
\\"style\\": \\"left: Npx; width: Npx; top: Npx; bottom: auto; display: block;\\",
|
|
\\"class\\": \\"select2-drop select2-display-none select2-with-searchbox select2-drop-active\\"
|
|
}
|
|
},
|
|
{
|
|
\\"id\\": 70,
|
|
\\"attributes\\": {
|
|
\\"style\\": \\"\\"
|
|
}
|
|
},
|
|
{
|
|
\\"id\\": 42,
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-input select2-focused\\",
|
|
\\"aria-activedescendant\\": \\"select2-result-label-2\\"
|
|
}
|
|
},
|
|
{
|
|
\\"id\\": 35,
|
|
\\"attributes\\": {
|
|
\\"disabled\\": \\"\\"
|
|
}
|
|
},
|
|
{
|
|
\\"id\\": 72,
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-results-dept-0 select2-result select2-result-selectable select2-highlighted\\"
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [
|
|
{
|
|
\\"parentId\\": 25,
|
|
\\"id\\": 26
|
|
},
|
|
{
|
|
\\"parentId\\": 25,
|
|
\\"id\\": 36
|
|
},
|
|
{
|
|
\\"parentId\\": 45,
|
|
\\"id\\": 46
|
|
}
|
|
],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 25,
|
|
\\"nextId\\": 34,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"a\\",
|
|
\\"attributes\\": {
|
|
\\"href\\": \\"javascript:void(0)\\",
|
|
\\"class\\": \\"select2-choice\\",
|
|
\\"tabindex\\": \\"-1\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 26
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 26,
|
|
\\"nextId\\": 28,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 27
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 26,
|
|
\\"nextId\\": 30,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-chosen\\",
|
|
\\"id\\": \\"select2-chosen-1\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 28
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 28,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"A\\",
|
|
\\"id\\": 29
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 26,
|
|
\\"nextId\\": 31,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"abbr\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-search-choice-close\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 30
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 26,
|
|
\\"nextId\\": 32,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 31
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 26,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-arrow\\",
|
|
\\"role\\": \\"presentation\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 32
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 32,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"b\\",
|
|
\\"attributes\\": {
|
|
\\"role\\": \\"presentation\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 33
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 18,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-drop select2-display-none select2-with-searchbox select2-drop-active\\",
|
|
\\"id\\": \\"select2-drop\\",
|
|
\\"style\\": \\"left: Npx; width: Npx; top: Npx; bottom: auto; display: block;\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 36
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 36,
|
|
\\"nextId\\": 38,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 37
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 36,
|
|
\\"nextId\\": 44,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-search\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 38
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 38,
|
|
\\"nextId\\": 40,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 39
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 38,
|
|
\\"nextId\\": 41,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"label\\",
|
|
\\"attributes\\": {
|
|
\\"for\\": \\"s2id_autogen1_search\\",
|
|
\\"class\\": \\"select2-offscreen\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 40
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 38,
|
|
\\"nextId\\": 42,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 41
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 38,
|
|
\\"nextId\\": 43,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"input\\",
|
|
\\"attributes\\": {
|
|
\\"type\\": \\"text\\",
|
|
\\"autocomplete\\": \\"off\\",
|
|
\\"autocorrect\\": \\"off\\",
|
|
\\"autocapitalize\\": \\"off\\",
|
|
\\"spellcheck\\": \\"false\\",
|
|
\\"class\\": \\"select2-input select2-focused\\",
|
|
\\"role\\": \\"combobox\\",
|
|
\\"aria-expanded\\": \\"true\\",
|
|
\\"aria-autocomplete\\": \\"list\\",
|
|
\\"aria-owns\\": \\"select2-results-1\\",
|
|
\\"id\\": \\"s2id_autogen1_search\\",
|
|
\\"placeholder\\": \\"\\",
|
|
\\"aria-activedescendant\\": \\"select2-result-label-2\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 42
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 38,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 43
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 36,
|
|
\\"nextId\\": 45,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\" \\",
|
|
\\"id\\": 44
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 36,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"ul\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-results\\",
|
|
\\"role\\": \\"listbox\\",
|
|
\\"id\\": \\"select2-results-1\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 45
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 45,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-results-dept-0 select2-result select2-result-selectable\\",
|
|
\\"role\\": \\"presentation\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 67
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 67,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-result-label\\",
|
|
\\"id\\": \\"select2-result-label-3\\",
|
|
\\"role\\": \\"option\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 68
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 68,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"B\\",
|
|
\\"id\\": 69
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 18,
|
|
\\"nextId\\": 36,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"id\\": \\"select2-drop-mask\\",
|
|
\\"class\\": \\"select2-drop-mask\\",
|
|
\\"style\\": \\"\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 70
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 62,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"2 results are available, use up and down arrow keys to navigate.\\",
|
|
\\"id\\": 71
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 45,
|
|
\\"nextId\\": 67,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-results-dept-0 select2-result select2-result-selectable select2-highlighted\\",
|
|
\\"role\\": \\"presentation\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 72
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 72,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-result-label\\",
|
|
\\"id\\": \\"select2-result-label-2\\",
|
|
\\"role\\": \\"option\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 73
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 73,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"A\\",
|
|
\\"id\\": 74
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 73,
|
|
\\"nextId\\": 74,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-match\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 75
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 68,
|
|
\\"nextId\\": 69,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"span\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-match\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 76
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 0,
|
|
\\"id\\": 70
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 42
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 5,
|
|
\\"text\\": \\"\\",
|
|
\\"isChecked\\": false,
|
|
\\"id\\": 35
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 1,
|
|
\\"id\\": 70
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 6,
|
|
\\"id\\": 42
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 5,
|
|
\\"id\\": 35
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [
|
|
{
|
|
\\"id\\": 70,
|
|
\\"attributes\\": {
|
|
\\"style\\": \\"display: none;\\"
|
|
}
|
|
},
|
|
{
|
|
\\"id\\": 36,
|
|
\\"attributes\\": {
|
|
\\"id\\": null,
|
|
\\"style\\": \\"left: Npx; width: Npx; top: Npx; bottom: auto; display: none;\\"
|
|
}
|
|
},
|
|
{
|
|
\\"id\\": 25,
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-container select2-container-active\\"
|
|
}
|
|
},
|
|
{
|
|
\\"id\\": 35,
|
|
\\"attributes\\": {
|
|
\\"disabled\\": null
|
|
}
|
|
},
|
|
{
|
|
\\"id\\": 42,
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"select2-input\\"
|
|
}
|
|
}
|
|
],
|
|
\\"removes\\": [
|
|
{
|
|
\\"parentId\\": 18,
|
|
\\"id\\": 70
|
|
},
|
|
{
|
|
\\"parentId\\": 45,
|
|
\\"id\\": 72
|
|
},
|
|
{
|
|
\\"parentId\\": 45,
|
|
\\"id\\": 67
|
|
}
|
|
],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 18,
|
|
\\"nextId\\": 36,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"id\\": \\"select2-drop-mask\\",
|
|
\\"class\\": \\"select2-drop-mask\\",
|
|
\\"style\\": \\"display: none;\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 70
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 2,
|
|
\\"type\\": 0,
|
|
\\"id\\": 26
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`serialize-before-record 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 3
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"mutation observer\\",
|
|
\\"id\\": 7
|
|
}
|
|
],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"ul\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 11
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
}
|
|
],
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 15
|
|
}
|
|
],
|
|
\\"id\\": 14
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\",
|
|
\\"id\\": 16
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
}
|
|
],
|
|
\\"id\\": 2
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 9,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 17
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 9,
|
|
\\"nextId\\": 17,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 18
|
|
}
|
|
},
|
|
{
|
|
\\"parentId\\": 9,
|
|
\\"nextId\\": 18,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"li\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 19
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]"
|
|
`;
|
|
|
|
exports[`shadow-dom 1`] = `
|
|
"[
|
|
{
|
|
\\"type\\": 0,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 1,
|
|
\\"data\\": {}
|
|
},
|
|
{
|
|
\\"type\\": 4,
|
|
\\"data\\": {
|
|
\\"href\\": \\"about:blank\\",
|
|
\\"width\\": 1920,
|
|
\\"height\\": 1080
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"data\\": {
|
|
\\"node\\": {
|
|
\\"type\\": 0,
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 1,
|
|
\\"name\\": \\"html\\",
|
|
\\"publicId\\": \\"\\",
|
|
\\"systemId\\": \\"\\",
|
|
\\"id\\": 2
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"html\\",
|
|
\\"attributes\\": {
|
|
\\"lang\\": \\"en\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"head\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 5
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"charset\\": \\"UTF-8\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 6
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 7
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"meta\\",
|
|
\\"attributes\\": {
|
|
\\"name\\": \\"viewport\\",
|
|
\\"content\\": \\"width=device-width, initial-scale=1.0\\"
|
|
},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 8
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 9
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"title\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Shadow DOM Observer\\",
|
|
\\"id\\": 11
|
|
}
|
|
],
|
|
\\"id\\": 10
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 12
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"style\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n .my-element {\\\\n margin: 0 0 1rem 0;\\\\n }\\\\n iframe {\\\\n border: 0;\\\\n width: 100%;\\\\n padding: 0;\\\\n }\\\\n\\\\n body {\\\\n max-width: 400px;\\\\n margin: 1rem auto;\\\\n padding: 0 1rem;\\\\n font-family: 'comic sans ms';\\\\n }\\\\n \\",
|
|
\\"isStyle\\": true,
|
|
\\"id\\": 14
|
|
}
|
|
],
|
|
\\"id\\": 13
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 15
|
|
}
|
|
],
|
|
\\"id\\": 4
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 16
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"body\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 18
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat odit\\\\n officiis necessitatibus laborum asperiores et adipisci dolores corporis,\\\\n vero distinctio voluptas, suscipit commodi architecto, aliquam fugit.\\\\n Nesciunt labore reiciendis blanditiis!\\\\n \\",
|
|
\\"id\\": 20
|
|
}
|
|
],
|
|
\\"id\\": 19
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 21
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"div\\",
|
|
\\"attributes\\": {
|
|
\\"class\\": \\"my-element\\"
|
|
},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 23
|
|
},
|
|
{
|
|
\\"type\\": 5,
|
|
\\"textContent\\": \\" Also could be a \\\\n <custom-element />\\\\n \\",
|
|
\\"id\\": 24
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 25
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 26,
|
|
\\"isShadow\\": true
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"style\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n body { /* for fallback iframe */\\\\n margin: 0;\\\\n }\\\\n p { \\\\n border: 1px solid #ccc;\\\\n padding: 1rem;\\\\n color: red;\\\\n font-family: sans-serif;\\\\n }\\\\n \\",
|
|
\\"isStyle\\": true,
|
|
\\"id\\": 28
|
|
}
|
|
],
|
|
\\"id\\": 27,
|
|
\\"isShadow\\": true
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 29,
|
|
\\"isShadow\\": true
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"Element with Shadow DOM\\",
|
|
\\"id\\": 31
|
|
}
|
|
],
|
|
\\"id\\": 30,
|
|
\\"isShadow\\": true
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\",
|
|
\\"id\\": 32,
|
|
\\"isShadow\\": true
|
|
}
|
|
],
|
|
\\"id\\": 22,
|
|
\\"isShadowHost\\": true
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n\\\\n \\",
|
|
\\"id\\": 33
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat odit\\\\n officiis necessitatibus laborum asperiores et adipisci dolores corporis,\\\\n vero distinctio voluptas, suscipit commodi architecto, aliquam fugit.\\\\n Nesciunt labore reiciendis blanditiis!\\\\n \\",
|
|
\\"id\\": 35
|
|
}
|
|
],
|
|
\\"id\\": 34
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\",
|
|
\\"id\\": 36
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 38
|
|
}
|
|
],
|
|
\\"id\\": 37
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n \\",
|
|
\\"id\\": 39
|
|
},
|
|
{
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"script\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"SCRIPT_PLACEHOLDER\\",
|
|
\\"id\\": 41
|
|
}
|
|
],
|
|
\\"id\\": 40
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"\\\\n \\\\n \\\\n\\\\n\\",
|
|
\\"id\\": 42
|
|
}
|
|
],
|
|
\\"id\\": 17
|
|
}
|
|
],
|
|
\\"id\\": 3
|
|
}
|
|
],
|
|
\\"id\\": 1
|
|
},
|
|
\\"initialOffset\\": {
|
|
\\"left\\": 0,
|
|
\\"top\\": 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 22,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 43,
|
|
\\"isShadow\\": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 43,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 2,
|
|
\\"tagName\\": \\"p\\",
|
|
\\"attributes\\": {},
|
|
\\"childNodes\\": [],
|
|
\\"id\\": 44
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [
|
|
{
|
|
\\"parentId\\": 22,
|
|
\\"id\\": 30,
|
|
\\"isShadow\\": true
|
|
}
|
|
],
|
|
\\"adds\\": []
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 44,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"hi\\",
|
|
\\"id\\": 45
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
\\"type\\": 3,
|
|
\\"data\\": {
|
|
\\"source\\": 0,
|
|
\\"texts\\": [],
|
|
\\"attributes\\": [],
|
|
\\"removes\\": [
|
|
{
|
|
\\"parentId\\": 44,
|
|
\\"id\\": 45
|
|
}
|
|
],
|
|
\\"adds\\": [
|
|
{
|
|
\\"parentId\\": 44,
|
|
\\"nextId\\": null,
|
|
\\"node\\": {
|
|
\\"type\\": 3,
|
|
\\"textContent\\": \\"123\\",
|
|
\\"id\\": 46
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]"
|
|
`;
|