mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-08 20:58:24 +08:00
This also adds CC-BY-4.0 to the list of accepted licenses. DISABLE_THIRD_PARTY_CHECK=update dependencies Bug: chromium:1083142 Change-Id: I8612de2fba52dae32eeb71af79d5aacfde52142b Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2220097 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Mathias Bynens <mathias@chromium.org>
19 lines
844 B
JavaScript
19 lines
844 B
JavaScript
"use strict";
|
|
|
|
var _helpers = require("./util/helpers");
|
|
|
|
(0, _helpers.test)('escaped semicolon in class', '.\\;', function (t, tree) {
|
|
t.deepEqual(tree.nodes[0].nodes[0].value, ';');
|
|
t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\;');
|
|
t.deepEqual(tree.nodes[0].nodes[0].type, 'class');
|
|
});
|
|
(0, _helpers.test)('escaped semicolon in id', '#\\;', function (t, tree) {
|
|
t.deepEqual(tree.nodes[0].nodes[0].value, ';');
|
|
t.deepEqual(tree.nodes[0].nodes[0].raws.value, '\\;');
|
|
t.deepEqual(tree.nodes[0].nodes[0].type, 'id');
|
|
}); // This is a side-effect of allowing media queries to be parsed. Not sure it shouldn't just be an error.
|
|
|
|
(0, _helpers.test)('bare parens capture contents as a string', '(h1)', function (t, tree) {
|
|
t.deepEqual(tree.nodes[0].nodes[0].value, '(h1)');
|
|
t.deepEqual(tree.nodes[0].nodes[0].type, 'string');
|
|
}); |