Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
52882e94
Commit
52882e94
authored
Aug 02, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
222
parent
2b166467
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3170 additions
and
3057 deletions
+3170
-3057
js_dom_run.js
js_dom_run.js
+3091
-3048
Window.js
jsdom/lib/jsdom/browser/Window.js
+4
-1
KeyboardEvent-impl.js
jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js
+1
-0
Event.js
jsdom/lib/jsdom/living/generated/Event.js
+1
-1
KeyboardEvent.js
jsdom/lib/jsdom/living/generated/KeyboardEvent.js
+1
-1
Navigator.js
jsdom/lib/jsdom/living/generated/Navigator.js
+70
-4
HTMLElement-impl.js
jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js
+2
-2
No files found.
js_dom_run.js
View file @
52882e94
This diff is collapsed.
Click to expand it.
jsdom/lib/jsdom/browser/Window.js
View file @
52882e94
...
@@ -269,9 +269,12 @@ function Window(options) {
...
@@ -269,9 +269,12 @@ function Window(options) {
console
.
log
(
'window get'
,
p
,
typeof
res
)
console
.
log
(
'window get'
,
p
,
typeof
res
)
}
}
if
(
p
===
'offsetHeight'
){
debugger
;
}
// console.log(Reflect.get(target, '_cf_chl_ctx', receiver))
// console.log(Reflect.get(target, '_cf_chl_ctx', receiver))
if
(
!
[
'_registeredHandlers'
,
'window'
,
'_currentEvent'
,
'performance'
,
'debug'
,
'_eventListenerss'
].
includes
(
p
)
&&
res
&&
typeof
res
===
'object'
&&
typeof
p
!==
'symbol'
)
{
if
(
!
[
'_registeredHandlers'
,
'window'
,
'_currentEvent'
,
'performance'
,
'debug'
,
'_eventListenerss'
,
'top'
].
includes
(
p
)
&&
res
&&
typeof
res
===
'object'
&&
typeof
p
!==
'symbol'
)
{
return
proxy
(
res
,
p
)
return
proxy
(
res
,
p
)
}
}
return
res
;
return
res
;
...
...
jsdom/lib/jsdom/living/events/KeyboardEvent-impl.js
View file @
52882e94
...
@@ -19,6 +19,7 @@ class KeyboardEventImpl extends UIEventImpl {
...
@@ -19,6 +19,7 @@ class KeyboardEventImpl extends UIEventImpl {
this
.
altKey
=
altKey
;
this
.
altKey
=
altKey
;
this
.
shiftKey
=
shiftKey
;
this
.
shiftKey
=
shiftKey
;
this
.
metaKey
=
metaKey
;
this
.
metaKey
=
metaKey
;
this
.
target
=
view
}
}
}
}
mixin
(
KeyboardEventImpl
.
prototype
,
EventModifierMixinImpl
.
prototype
);
mixin
(
KeyboardEventImpl
.
prototype
,
EventModifierMixinImpl
.
prototype
);
...
...
jsdom/lib/jsdom/living/generated/Event.js
View file @
52882e94
...
@@ -215,7 +215,7 @@ exports.install = (globalObject, globalNames) => {
...
@@ -215,7 +215,7 @@ exports.install = (globalObject, globalNames) => {
throw
new
TypeError
(
"'get target' called on an object that is not a valid instance of Event."
);
throw
new
TypeError
(
"'get target' called on an object that is not a valid instance of Event."
);
}
}
return
utils
.
tryWrapperForImpl
(
esValue
[
implSymbol
][
"
target
"
]);
return
utils
.
tryWrapperForImpl
(
esValue
[
implSymbol
][
"
view
"
]);
}
}
get
srcElement
()
{
get
srcElement
()
{
...
...
jsdom/lib/jsdom/living/generated/KeyboardEvent.js
View file @
52882e94
...
@@ -406,7 +406,7 @@ exports.install = (globalObject, globalNames) => {
...
@@ -406,7 +406,7 @@ exports.install = (globalObject, globalNames) => {
Object
.
defineProperty
(
globalObject
,
interfaceName
,
{
Object
.
defineProperty
(
globalObject
,
interfaceName
,
{
configurable
:
true
,
configurable
:
true
,
writable
:
true
,
writable
:
true
,
value
:
KeyboardEvent
value
:
utils
.
v_saf
(
KeyboardEvent
)
});
});
};
};
...
...
jsdom/lib/jsdom/living/generated/Navigator.js
View file @
52882e94
...
@@ -184,9 +184,10 @@ exports.install = (globalObject, globalNames) => {
...
@@ -184,9 +184,10 @@ exports.install = (globalObject, globalNames) => {
},
{
"brand"
:
"Chromium"
,
"version"
:
"115"
}],
"mobile"
:
false
,
"platform"
:
"macOS"
,
},
{
"brand"
:
"Chromium"
,
"version"
:
"115"
}],
"mobile"
:
false
,
"platform"
:
"macOS"
,
getHighEntropyValues
:
function
(
e
)
{
getHighEntropyValues
:
function
(
e
)
{
console
.
log
(
'getHighEntropyValues'
,
e
)
console
.
log
(
'getHighEntropyValues'
,
e
)
return
{
let
r
;
then
:
function
()
{
switch
(
e
)
{
return
{
case
'architecture'
:
r
=
{
"architecture"
:
"arm"
,
"architecture"
:
"arm"
,
"brands"
:
[
"brands"
:
[
{
{
...
@@ -205,7 +206,72 @@ exports.install = (globalObject, globalNames) => {
...
@@ -205,7 +206,72 @@ exports.install = (globalObject, globalNames) => {
"mobile"
:
false
,
"mobile"
:
false
,
"platform"
:
"macOS"
"platform"
:
"macOS"
}
}
}
break
;
case
'bitness'
:
r
=
{
"bitness"
:
"64"
,
"brands"
:
[{
"brand"
:
"Not/A)Brand"
,
"version"
:
"99"
},
{
"brand"
:
"Google Chrome"
,
"version"
:
"115"
},
{
"brand"
:
"Chromium"
,
"version"
:
"115"
}],
"mobile"
:
false
,
"platform"
:
"macOS"
}
break
;
case
'brands'
:
r
=
{
"brands"
:
[{
"brand"
:
"Not/A)Brand"
,
"version"
:
"99"
},
{
"brand"
:
"Google Chrome"
,
"version"
:
"115"
},
{
"brand"
:
"Chromium"
,
"version"
:
"115"
}],
"mobile"
:
false
,
"platform"
:
"macOS"
}
break
;
case
'mobile'
:
r
=
{
"brands"
:
[{
"brand"
:
"Not/A)Brand"
,
"version"
:
"99"
},
{
"brand"
:
"Google Chrome"
,
"version"
:
"115"
},
{
"brand"
:
"Chromium"
,
"version"
:
"115"
}],
"mobile"
:
false
,
"platform"
:
"macOS"
}
break
;
case
'model'
:
r
=
{
"brands"
:
[{
"brand"
:
"Not/A)Brand"
,
"version"
:
"99"
},
{
"brand"
:
"Google Chrome"
,
"version"
:
"115"
},
{
"brand"
:
"Chromium"
,
"version"
:
"115"
}],
"mobile"
:
false
,
"platform"
:
"macOS"
}
break
;
case
'platform'
:
r
=
{
"brands"
:
[{
"brand"
:
"Not/A)Brand"
,
"version"
:
"99"
},
{
"brand"
:
"Google Chrome"
,
"version"
:
"115"
},
{
"brand"
:
"Chromium"
,
"version"
:
"115"
}],
"mobile"
:
false
,
"platform"
:
"macOS"
}
break
;
case
'platformVersion'
:
r
=
{
"brands"
:
[{
"brand"
:
"Not/A)Brand"
,
"version"
:
"99"
},
{
"brand"
:
"Google Chrome"
,
"version"
:
"115"
},
{
"brand"
:
"Chromium"
,
"version"
:
"115"
}],
"mobile"
:
false
,
"platform"
:
"macOS"
,
"platformVersion"
:
"13.5.0"
}
break
;
case
'uaFullVersion'
:
r
=
{
"brands"
:[{
"brand"
:
"Not/A)Brand"
,
"version"
:
"99"
},{
"brand"
:
"Google Chrome"
,
"version"
:
"115"
},{
"brand"
:
"Chromium"
,
"version"
:
"115"
}],
"mobile"
:
false
,
"platform"
:
"macOS"
,
"uaFullVersion"
:
"115.0.5790.114"
}
break
;
case
'wow64'
:
r
=
{
"brands"
:[{
"brand"
:
"Not/A)Brand"
,
"version"
:
"99"
},{
"brand"
:
"Google Chrome"
,
"version"
:
"115"
},{
"brand"
:
"Chromium"
,
"version"
:
"115"
}],
"mobile"
:
false
,
"platform"
:
"macOS"
,
"wow64"
:
false
}
break
;
case
'fullVersionList'
:
r
=
{
"brands"
:[{
"brand"
:
"Not/A)Brand"
,
"version"
:
"99"
},{
"brand"
:
"Google Chrome"
,
"version"
:
"115"
},{
"brand"
:
"Chromium"
,
"version"
:
"115"
}],
"fullVersionList"
:[{
"brand"
:
"Not/A)Brand"
,
"version"
:
"99.0.0.0"
},{
"brand"
:
"Google Chrome"
,
"version"
:
"115.0.5790.114"
},{
"brand"
:
"Chromium"
,
"version"
:
"115.0.5790.114"
}],
"mobile"
:
false
,
"platform"
:
"macOS"
}
break
;
}
}
}
}
}
}
...
...
jsdom/lib/jsdom/living/nodes/HTMLElement-impl.js
View file @
52882e94
...
@@ -143,11 +143,11 @@ class HTMLElementImpl extends ElementImpl {
...
@@ -143,11 +143,11 @@ class HTMLElementImpl extends ElementImpl {
}
}
get
offsetWidth
()
{
get
offsetWidth
()
{
return
0
;
return
1131
;
}
}
get
offsetHeight
()
{
get
offsetHeight
()
{
return
0
;
return
25
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment