Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
429e0dde
Commit
429e0dde
authored
Jul 05, 2016
by
Jacek Caban
Committed by
Alexandre Julliard
Jul 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added document.documentMode tests.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6614df04
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
0 deletions
+49
-0
documentmode.js
dlls/mshtml/tests/documentmode.js
+37
-0
rsrc.rc
dlls/mshtml/tests/rsrc.rc
+3
-0
script.c
dlls/mshtml/tests/script.c
+9
-0
No files found.
dlls/mshtml/tests/documentmode.js
0 → 100644
View file @
429e0dde
/*
* Copyright 2016 Jacek Caban for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
function
test_doc_mode
()
{
var
opt
=
parseInt
(
document
.
location
.
search
.
substring
(
1
));
trace
(
"Testing document mode "
+
opt
);
if
(
opt
>
document
.
documentMode
)
{
win_skip
(
"Document mode not supported (expected "
+
opt
+
" got "
+
document
.
documentMode
+
")"
);
reportSuccess
();
return
;
}
ok
(
opt
===
document
.
documentMode
,
"documentMode = "
+
document
.
documentMode
);
next_test
();
}
var
tests
=
[
test_doc_mode
];
dlls/mshtml/tests/rsrc.rc
View file @
429e0dde
...
...
@@ -40,6 +40,9 @@ navigation.js HTML "navigation.js"
/* @makedep: xhr.js */
xhr.js HTML "xhr.js"
/* @makedep: documentmode.js */
documentmode.js HTML "documentmode.js"
/* @makedep: blank.html */
blank.html HTML "blank.html"
...
...
dlls/mshtml/tests/script.c
View file @
429e0dde
...
...
@@ -3320,6 +3320,15 @@ static void run_js_tests(void)
run_script_as_http_with_mode
(
"xhr.js"
,
NULL
,
"11"
);
run_script_as_http_with_mode
(
"navigation.js"
,
NULL
,
NULL
);
run_script_as_http_with_mode
(
"navigation.js"
,
NULL
,
"11"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"?5"
,
NULL
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"?5"
,
"5"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"?5"
,
"6"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"?7"
,
"7"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"?8"
,
"8"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"?9"
,
"9"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"?10"
,
"10"
);
run_script_as_http_with_mode
(
"documentmode.js"
,
"?11"
,
"11"
);
}
static
BOOL
init_registry
(
BOOL
init
)
...
...
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