Andreas Kling
7ab2a4dde7
LibX86: Add an abstract X86::Interpreter class
...
This abstract class has a pure virtual member function for all of the
X86 instructions. This can be used to implement.. something. :^)
2020-07-07 22:44:58 +02:00
Nico Weber
ad8e784938
LibEdit: Make Ctrl-d on an empty line mean EOD again
2020-07-07 18:43:09 +02:00
Linus Groh
8f3151eea8
Base: Add link to test-common.js in test-js(1) man page
...
This is an easy way to view this file as the link will open it in Text
Editor :^)
2020-07-07 17:42:50 +02:00
Linus Groh
87465f7c54
Help: Handle external links
...
Links which do not have the "file" protocol (most commonly links to
external websites - http and https) are now not treated as file paths
anymore but instead handled by Desktop::Launcher.
The same applies to files outside of /usr/share/man.
Fixes #2727 .
2020-07-07 17:42:50 +02:00
Andreas Kling
787673b743
WindowServer: Turn an assertion that happens sometimes into a dbg()
...
It's very annoying to crash the WindowServer when something harmless
is a little weird.
2020-07-07 17:10:12 +02:00
Andreas Kling
5975a425bd
LibWeb: Turn floated display:inline elements into block-level elements
2020-07-07 17:10:12 +02:00
Andreas Kling
7527b9ee72
WindowServer: set_active_window() should not assume window has a client
...
I saw this assertion fire once and I don't know how I made it happen,
but it seems fine for client-less windows to become active, they just
don't have a menubar to install.
2020-07-07 17:10:12 +02:00
Linus Groh
e0e100f009
Base: Add "alias ll='ls -l'" to /etc/shellrc
2020-07-07 16:43:59 +02:00
Linus Groh
d0de3ce0bf
Base: Remove "alias sd=SystemDialog" from /etc/shellrc
...
SystemDialog is no longer a standalone binary.
2020-07-07 16:43:59 +02:00
Nico Weber
564c4634c0
man pages: Consistently use "Otherwise, " in the few places that said "^Else, "
2020-07-07 16:37:46 +02:00
Tom
419703a1f2
Kernel: Fix checking BlockResult
...
We now have BlockResult::WokeNormally and BlockResult::NotBlocked,
both of which indicate no error. We can no longer just check for
BlockResult::WokeNormally and assume anything else must be an
interruption.
2020-07-07 15:46:58 +02:00
Andreas Kling
1493dd9dc6
Browser: Simplify the History class and fix back/forward history push
...
This code was previously relying on the PageView::on_load_start hook
firing synchronously when calling PageView::load(). This was not
happening with WebContentView, so it broke the back/forward history.
Instead, we now differentiate between history navigations and normal
loads in Tab::load(). History navigations don't push new entries into
history, but instead just move the history pointer.
2020-07-07 15:09:26 +02:00
AnotherTest
b5e04cb070
Shell: Skip creating a Join node when nothing was parsed
...
This fixes a crash when Shell tries to highlight `|`.
2020-07-07 14:52:53 +02:00
thankyouverycool
d86dbfe9e8
Help: Make section books open and close when toggled
...
Much more satisfying!
2020-07-07 13:38:35 +02:00
thankyouverycool
cbf3c2caeb
LibGUI: Add on_toggle function to TreeView
...
This adds a function to expose the index and open/close state
of expandible nodes in TreeView.
2020-07-07 13:38:35 +02:00
thankyouverycool
27109c3467
Base+Help: Add new Help app icons
...
This adds a new 32x32 Help application icon, a new open book icon,
copies the current book icon as Help's 16x16 icon, and updates
the Help application file to reflect these changes.
2020-07-07 13:38:35 +02:00
Andreas Kling
92374fc942
LibWeb: Make context menus work in WebContentView
...
As usual, this was just a matter of plumbing the PageClient calls from
the WebContent side over to the WebContentView side. :^)
2020-07-07 12:24:29 +02:00
Andreas Kling
81ea9d1ef6
Base: Turn a whole bunch of /bin symlinks into shell aliases :^)
2020-07-07 11:35:22 +02:00
Andreas Kling
1bc6bb0421
Shell: Run both /etc/shellrc and ~/.shellrc on startup
...
The global script runs before the local (per-user) one.
2020-07-07 11:35:22 +02:00
Kevin Meyer
7974279a5d
LibWeb: Fix PageView::url() null-check
2020-07-07 11:07:44 +02:00
Matthew Olsson
93ebd320ef
LibJS: Object.preventExtensions should allow property modfication
...
Existing properties on a non-extensible object should be changable and
deletable.
2020-07-07 10:47:10 +02:00
Linus Groh
bfbd6df892
test-js: Show progress in taskbar
...
This was a nice feature the old run-tests.sh script had - let's add it
to test-js as well! :^)
2020-07-07 10:40:06 +02:00
Linus Groh
4c845b35ac
Base: Add man page for test-js(1)
2020-07-07 10:39:48 +02:00
Andrew Kaster
02018af0cc
Demos: Print out ELF Auxiliary Vector in LinkDemo
...
This is a test program anyway, so let's double check that the auxv
is done properly here.
2020-07-07 10:38:54 +02:00
Andrew Kaster
f96b827990
Kernel+LibELF: Expose ELF Auxiliary Vector to Userspace
...
The AT_* entries are placed after the environment variables, so that
they can be found by iterating until the end of the envp array, and then
going even further beyond :^)
2020-07-07 10:38:54 +02:00
Linus Groh
8b76a1e548
js: Remove test mode
...
Now that we have a standalone test-js program, the "-t" test mode of the
js REPL is unused and can simply be removed. Required functionality has
been duplicated in test-js (isStrictMode function, loading of testing
utilities).
Also remove outdated information about tests from the js(1) man page.
2020-07-07 00:21:30 +02:00
Andreas Kling
651829c1e6
test-js: Use Core::File::is_directory(path) instead of opening file
2020-07-06 23:46:29 +02:00
Matthew Olsson
695ba071a8
test-js: Remove tests_to_run in favor of a DirIterator
2020-07-06 23:40:35 +02:00
Linus Groh
461d90d042
LibJS: Convert Array tests to new testing framework
2020-07-06 23:40:35 +02:00
Linus Groh
8ebdf685a6
LibJS: Split isNaN tests into multiple sections
2020-07-06 23:40:35 +02:00
Matthew Olsson
1ef573eb30
LibJS: Indent tests with 4 spaces instead of 2
2020-07-06 23:40:35 +02:00
Matthew Olsson
15de2eda2b
LibJS: Convert all remaining non-Array tests to the new system :)
2020-07-06 23:40:35 +02:00
Matthew Olsson
918f4affd5
LibJS: Convert remaining top-level tests to new system
2020-07-06 23:40:35 +02:00
Matthew Olsson
6d58c48c2f
test-js: Use prettier and format all files
2020-07-06 23:40:35 +02:00
Matthew Olsson
e532888242
test-js: Only print files with failed or skipped tests
...
This does not affect output when the "-t" flag is specified -- all files
will still be printed in that case.
2020-07-06 23:40:35 +02:00
Matthew Olsson
a2dbd955f2
test-js: Display messages from console.log in test output
...
This will help greatly with debugging!
2020-07-06 23:40:35 +02:00
Matthew Olsson
474159277f
Base: Add information box emoji
...
ℹ️
2020-07-06 23:40:35 +02:00
Matthew Olsson
38648f1758
test-js: Only parse test-common.js once
2020-07-06 23:40:35 +02:00
Matthew Olsson
a822512443
test-js: Print duration of each test when given '-t' flag
2020-07-06 23:40:35 +02:00
Matthew Olsson
82fa65135a
test-js: Allow skipping tests with "test.skip(name, callback)"
...
Skipped tests count as a "pass" rather than a "fail" (i.e. a test suite
with a skipped test will pass), however it does display a message when
the test is printing.
This is intended for tests which _should_ work, but currently do not.
This should be preferred over "// FIXME" notes if possible.
2020-07-06 23:40:35 +02:00
Matthew Olsson
cf537311e4
test-js: Remove run-tests.sh
...
The shell script is no longer necessary -- simply run "test-js" from
inside Serenity, or $SERENITY_ROOT/Build/Meta/Lagom/test-js from the
host.
2020-07-06 23:40:35 +02:00
Matthew Olsson
26acc8ba88
LibJS/test-js: Clean up test-js code
...
This commit also exposes JSONObject's implementation of stringify to the
public, so that it can be used by test-js without having to go through
the interpreter's environment.
2020-07-06 23:40:35 +02:00
Matthew Olsson
4c6fd49169
LibJS: Fix String.raw.length
2020-07-06 23:40:35 +02:00
Matthew Olsson
3f97d75778
LibJS: Convert most builtin tests to new system
2020-07-06 23:40:35 +02:00
Linus Groh
46581773c1
LibJS: Convert Reflect object tests to new testing framework
2020-07-06 23:40:35 +02:00
Matthew Olsson
fc08222f46
LibJS: Add more test matchers
2020-07-06 23:40:35 +02:00
Matthew Olsson
5e971c91e3
LibJS: Hide some debug output behind flags
...
This hides some Object.cpp output, as well as removing the "debugger"
debug output.
2020-07-06 23:40:35 +02:00
Matthew Olsson
449a1cf3a2
LibJS: Convert Proxy tests
2020-07-06 23:40:35 +02:00
Matthew Olsson
b86faeaeef
LibJS: Add test-common.js tests, remove unused matchers
...
Now that test-common.js is quite a bit more complicated, we need tests
for test-common to make sure all of the matchers behave correctly
2020-07-06 23:40:35 +02:00
Matthew Olsson
eea6041302
LibJS: Convert some top-level tests to the new system
...
First test conversions! These look really good :)
2020-07-06 23:40:35 +02:00