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
9dbe38df
Commit
9dbe38df
authored
Aug 07, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
5555
parent
46a96af6
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11852 additions
and
6650 deletions
+11852
-6650
graphicsdrivers.txt
graphicsdrivers.txt
+1050
-0
jetblue.py
jetblue.py
+1
-2
js_dom_run.js
js_dom_run.js
+3172
-3450
MouseEvent.js
jsdom/lib/jsdom/living/generated/MouseEvent.js
+1
-1
GlobalEventHandlers-impl.js
jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js
+25
-0
HTMLCanvasElement-impl.js
jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
+16
-8
WindowEventHandlers-impl.js
jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js
+20
-4
1.log
logs/1.log
+4907
-2644
2.log
logs/2.log
+2659
-540
src.js
src.js
+1
-1
No files found.
graphicsdrivers.txt
0 → 100644
View file @
9dbe38df
This diff is collapsed.
Click to expand it.
jetblue.py
View file @
9dbe38df
...
@@ -5,7 +5,7 @@ import requests
...
@@ -5,7 +5,7 @@ import requests
import
json
import
json
import
tls_client
import
tls_client
session
=
tls_client
.
Session
(
client_identifier
=
'chrome_11
2
'
,
random_tls_extension_order
=
False
)
session
=
tls_client
.
Session
(
client_identifier
=
'chrome_11
1
'
,
random_tls_extension_order
=
False
)
# session = requests.session()
# session = requests.session()
headers
=
{
headers
=
{
...
@@ -17,7 +17,6 @@ headers = {
...
@@ -17,7 +17,6 @@ headers = {
"booking-application-type"
:
"NGB"
,
"booking-application-type"
:
"NGB"
,
"content-type"
:
"application/json"
,
"content-type"
:
"application/json"
,
"accept"
:
"application/json"
,
"accept"
:
"application/json"
,
"api-version"
:
"v3"
,
"origin"
:
"https://www.jetblue.com"
,
"origin"
:
"https://www.jetblue.com"
,
"sec-fetch-site"
:
"same-site"
,
"sec-fetch-site"
:
"same-site"
,
"sec-fetch-mode"
:
"cors"
,
"sec-fetch-mode"
:
"cors"
,
...
...
js_dom_run.js
View file @
9dbe38df
This diff is collapsed.
Click to expand it.
jsdom/lib/jsdom/living/generated/MouseEvent.js
View file @
9dbe38df
...
@@ -487,7 +487,7 @@ exports.install = (globalObject, globalNames) => {
...
@@ -487,7 +487,7 @@ exports.install = (globalObject, globalNames) => {
Object
.
defineProperty
(
globalObject
,
interfaceName
,
{
Object
.
defineProperty
(
globalObject
,
interfaceName
,
{
configurable
:
true
,
configurable
:
true
,
writable
:
true
,
writable
:
true
,
value
:
utils
.
v_saf
(
utils
.
v_saf
(
MouseEvent
)
)
value
:
utils
.
v_saf
(
MouseEvent
)
});
});
};
};
...
...
jsdom/lib/jsdom/living/nodes/GlobalEventHandlers-impl.js
View file @
9dbe38df
...
@@ -85,7 +85,32 @@ class GlobalEventHandlersImpl {
...
@@ -85,7 +85,32 @@ class GlobalEventHandlersImpl {
this
.
_setEventHandlerFor
(
event
,
handler
);
this
.
_setEventHandlerFor
(
event
,
handler
);
}
}
}
}
let
args
=
[
"_initGlobalEvents"
,
"_getEventHandlerTarget"
,
"_getEventHandlerFor"
,
"_setEventHandlerFor"
,
"_globalEventChanged"
]
var
v_saf
;
!
function
()
{
var
n
=
Function
.
toString
,
t
=
[],
i
=
[],
o
=
[].
indexOf
.
bind
(
t
),
e
=
[].
push
.
bind
(
t
),
r
=
[].
push
.
bind
(
i
);
function
u
(
n
,
t
,
tag
)
{
return
-
1
==
o
(
n
)
&&
(
e
(
n
),
r
(
`function
${
tag
?
tag
:
""
}${
t
||
n
.
name
||
""
}
() { [native code] }`
.
replaceAll
(
'get get'
,
'get'
).
replaceAll
(
'set set'
,
'set'
))),
n
}
Object
.
defineProperty
(
Function
.
prototype
,
"toString"
,
{
enumerable
:
!
1
,
configurable
:
!
0
,
writable
:
!
0
,
value
:
function
()
{
return
"function"
==
typeof
this
&&
i
[
o
(
this
)]
||
n
.
call
(
this
)
}
}),
u
(
Function
.
prototype
.
toString
,
"toString"
),
v_saf
=
u
}();
Object
.
defineProperties
(
GlobalEventHandlersImpl
.
prototype
,
{
_initGlobalEvents
:
{
value
:
v_saf
(
GlobalEventHandlersImpl
.
prototype
.
_initGlobalEvents
),
enumerable
:
false
},
_getEventHandlerTarget
:
{
value
:
v_saf
(
GlobalEventHandlersImpl
.
prototype
.
_getEventHandlerTarget
),
enumerable
:
false
},
_getEventHandlerFor
:
{
value
:
v_saf
(
GlobalEventHandlersImpl
.
prototype
.
_getEventHandlerFor
),
enumerable
:
false
},
_setEventHandlerFor
:
{
value
:
v_saf
(
GlobalEventHandlersImpl
.
prototype
.
_setEventHandlerFor
),
enumerable
:
false
},
_globalEventChanged
:
{
value
:
v_saf
(
GlobalEventHandlersImpl
.
prototype
.
_globalEventChanged
),
enumerable
:
false
},
})
for
(
const
event
of
events
)
{
for
(
const
event
of
events
)
{
createEventAccessor
(
GlobalEventHandlersImpl
.
prototype
,
event
);
createEventAccessor
(
GlobalEventHandlersImpl
.
prototype
,
event
);
}
}
...
...
jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
View file @
9dbe38df
...
@@ -3004,6 +3004,12 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
...
@@ -3004,6 +3004,12 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
getAttribLocation
(
program
,
name
)
{
getAttribLocation
(
program
,
name
)
{
v_console_log
(
' [*] WebGLRenderingContext -> getAttribLocation[func]'
,
program
,
name
);
v_console_log
(
' [*] WebGLRenderingContext -> getAttribLocation[func]'
,
program
,
name
);
switch
(
name
){
case
'aPosition'
:
return
0
;
case
'aColor'
:
return
1
;
}
}
}
vertexAttribPointer
(
index
,
size
,
type
,
normalized
,
stride
,
offset
)
{
vertexAttribPointer
(
index
,
size
,
type
,
normalized
,
stride
,
offset
)
{
...
@@ -3020,6 +3026,7 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
...
@@ -3020,6 +3026,7 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
getUniformLocation
(
program
,
name
)
{
getUniformLocation
(
program
,
name
)
{
v_console_log
(
' [*] WebGLRenderingContext -> getUniformLocation[func]'
,
program
,
name
);
v_console_log
(
' [*] WebGLRenderingContext -> getUniformLocation[func]'
,
program
,
name
);
return
proxy
({},
'getUniformLocation'
)
}
}
uniform4fv
(
program
,
name
)
{
uniform4fv
(
program
,
name
)
{
...
@@ -3031,9 +3038,9 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
...
@@ -3031,9 +3038,9 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
}
}
readPixels
(
x
,
y
,
width
,
height
,
format
,
type
,
pixels
)
{
readPixels
(
x
,
y
,
width
,
height
,
format
,
type
,
pixels
)
{
for
(
let
i
=
0
;
i
<
pixels
.
length
-
1
;
i
++
)
{
//
for (let i = 0; i < pixels.length - 1; i++) {
pixels
.
fill
(
parseInt
(
Math
.
random
()
*
210
+
10
),
i
,
i
+
1
)
//
pixels.fill(parseInt(Math.random() * 210 + 10), i, i + 1)
}
//
}
v_console_log
(
' [*] WebGLRenderingContext -> readPixels[func]'
,
x
,
y
,
width
,
height
,
format
,
type
,
pixels
)
v_console_log
(
' [*] WebGLRenderingContext -> readPixels[func]'
,
x
,
y
,
width
,
height
,
format
,
type
,
pixels
)
}
}
...
@@ -3159,13 +3166,14 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
...
@@ -3159,13 +3166,14 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
34921
:
16
,
34921
:
16
,
35660
:
16
,
35660
:
16
,
36347
:
1024
,
36347
:
1024
,
7937
:
'WebKit
:
WebGL'
,
7937
:
'WebKit
WebGL'
,
35724
:
'WebGL
:GLSL:ES:1.0:(OpenGL:ES:GLSL:ES:1.0:
Chromium)'
,
35724
:
'WebGL
GLSL ES 1.0 (OpenGL ES GLSL ES 1.0
Chromium)'
,
3415
:
0
,
3415
:
0
,
7936
:
'WebKit'
,
7936
:
'WebKit'
,
7938
:
'WebGL:1.0:(OpenGL:ES:2.0:Chromium)'
,
7938
:
'WebGL 1.0 (OpenGL ES 2.0 Chromium)'
,
37445
:
'Google Inc. (Apple)'
,
37445
:
'Google Inc.'
,
37446
:
'ANGLE (Apple, Apple M1 Max, OpenGL 4.1)'
,
// 37446: 'ANGLE (Apple, Apple M1 Max, OpenGL 4.1)',
37446
:
window
.
GRAPHIC_DRIVER
,
34047
:
null
34047
:
null
}
}
if
(
_toggle
[
key
])
{
if
(
_toggle
[
key
])
{
...
...
jsdom/lib/jsdom/living/nodes/WindowEventHandlers-impl.js
View file @
9dbe38df
...
@@ -29,10 +29,28 @@ const events = new Set([
...
@@ -29,10 +29,28 @@ const events = new Set([
"resize"
,
"resize"
,
"scroll"
"scroll"
]);
]);
var
v_saf
;
!
function
()
{
var
n
=
Function
.
toString
,
t
=
[],
i
=
[],
o
=
[].
indexOf
.
bind
(
t
),
e
=
[].
push
.
bind
(
t
),
r
=
[].
push
.
bind
(
i
);
function
u
(
n
,
t
,
tag
)
{
return
-
1
==
o
(
n
)
&&
(
e
(
n
),
r
(
`function
${
tag
?
tag
:
""
}${
t
||
n
.
name
||
""
}
() { [native code] }`
.
replaceAll
(
'get get'
,
'get'
).
replaceAll
(
'set set'
,
'set'
))),
n
}
Object
.
defineProperty
(
Function
.
prototype
,
"toString"
,
{
enumerable
:
!
1
,
configurable
:
!
0
,
writable
:
!
0
,
value
:
function
()
{
return
"function"
==
typeof
this
&&
i
[
o
(
this
)]
||
n
.
call
(
this
)
}
}),
u
(
Function
.
prototype
.
toString
,
"toString"
),
v_saf
=
u
}();
// This class builds on GlobalEventHandlers, which must be mixed in first.
// This class builds on GlobalEventHandlers, which must be mixed in first.
class
WindowEventHandlersImpl
{
class
WindowEventHandlersImpl
{
_proxyWindowEventsToWindow
()
{
}
WindowEventHandlersImpl
.
prototype
.
_proxyWindowEventsToWindow
=
v_saf
(
function
_proxyWindowEventsToWindow
()
{
// We're a <body> or <frameset>, so we need to proxy these specific events to the Window (if it exists)
// We're a <body> or <frameset>, so we need to proxy these specific events to the Window (if it exists)
this
.
_getEventHandlerTarget
=
event
=>
{
this
.
_getEventHandlerTarget
=
event
=>
{
if
(
events
.
has
(
event
))
{
if
(
events
.
has
(
event
))
{
...
@@ -40,9 +58,7 @@ class WindowEventHandlersImpl {
...
@@ -40,9 +58,7 @@ class WindowEventHandlersImpl {
}
}
return
this
;
return
this
;
};
};
}
})
}
for
(
const
event
of
events
)
{
for
(
const
event
of
events
)
{
createEventAccessor
(
WindowEventHandlersImpl
.
prototype
,
event
);
createEventAccessor
(
WindowEventHandlersImpl
.
prototype
,
event
);
}
}
...
...
logs/1.log
View file @
9dbe38df
This diff is collapsed.
Click to expand it.
logs/2.log
View file @
9dbe38df
This diff is collapsed.
Click to expand it.
src.js
View file @
9dbe38df
...
@@ -57,7 +57,7 @@ v_start_stamp = Date.now()
...
@@ -57,7 +57,7 @@ v_start_stamp = Date.now()
print
=
console
.
log
print
=
console
.
log
dtavm
.
log
=
console
.
log
dtavm
.
log
=
console
.
log
con3
=
console
.
log
con3
=
console
.
log
con3
=
function
(){}
//
con3 = function (){}
proxy
=
function
(
tt
,
name
)
{
proxy
=
function
(
tt
,
name
)
{
return
new
Proxy
(
tt
,
{
return
new
Proxy
(
tt
,
{
...
...
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