Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/resources/webidl2/lib/webidl2.js

Issue 1993513002: Move the shadow-dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 1
2 2
3 (function () { 3 (function () {
4 var tokenise = function (str) { 4 var tokenise = function (str) {
5 var tokens = [] 5 var tokens = []
6 , re = { 6 , re = {
7 "float": /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][-+]?[0 -9]+)?|[0-9]+[Ee][-+]?[0-9]+)/ 7 "float": /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][-+]?[0 -9]+)?|[0-9]+[Ee][-+]?[0-9]+)/
8 , "integer": /^-?(0([Xx][0-9A-Fa-f]+|[0-7]*)|[1-9][0-9]*)/ 8 , "integer": /^-?(0([Xx][0-9A-Fa-f]+|[0-7]*)|[1-9][0-9]*)/
9 , "identifier": /^[A-Z_a-z][0-9A-Z_a-z]*/ 9 , "identifier": /^[A-Z_a-z][0-9A-Z_a-z]*/
10 , "string": /^"[^"]*"/ 10 , "string": /^"[^"]*"/
(...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 parse: function (str, opt) { 1003 parse: function (str, opt) {
1004 if (!opt) opt = {}; 1004 if (!opt) opt = {};
1005 var tokens = tokenise(str); 1005 var tokens = tokenise(str);
1006 return parse(tokens, opt); 1006 return parse(tokens, opt);
1007 } 1007 }
1008 }; 1008 };
1009 1009
1010 if (inNode) module.exports = obj; 1010 if (inNode) module.exports = obj;
1011 else self.WebIDL2 = obj; 1011 else self.WebIDL2 = obj;
1012 }()); 1012 }());
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698