selenium-webdriver 3.5.0 → 4.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +246 -0
- package/LICENSE +1 -1
- package/NOTICE +1 -1
- package/README.md +40 -40
- package/chrome.js +118 -134
- package/edge.js +43 -117
- package/example/chrome_android.js +8 -9
- package/example/chrome_mobile_emulation.js +8 -9
- package/example/firefox_channels.js +23 -19
- package/example/google_search.js +3 -3
- package/example/google_search_test.js +38 -27
- package/example/{chrome_headless.js → headless.js} +15 -7
- package/example/logging.js +40 -7
- package/firefox.js +789 -0
- package/http/index.js +62 -9
- package/http/util.js +11 -6
- package/ie.js +83 -97
- package/index.js +198 -114
- package/io/exec.js +29 -15
- package/io/index.js +1 -1
- package/io/zip.js +1 -1
- package/lib/actions.js +68 -63
- package/lib/atoms/get-attribute.js +86 -0
- package/lib/atoms/is-displayed.js +76 -76
- package/lib/by.js +7 -4
- package/lib/capabilities.js +310 -210
- package/lib/command.js +27 -51
- package/lib/error.js +100 -41
- package/lib/http.js +161 -120
- package/lib/input.js +1044 -8
- package/lib/logging.js +1 -5
- package/lib/promise.js +222 -3331
- package/lib/proxy.js +134 -39
- package/lib/session.js +2 -2
- package/lib/symbols.js +0 -0
- package/lib/until.js +1 -1
- package/lib/webdriver.js +717 -953
- package/net/index.js +21 -25
- package/net/portprober.js +51 -68
- package/package.json +17 -12
- package/proxy.js +0 -0
- package/remote/index.js +63 -44
- package/safari.js +41 -128
- package/testing/index.js +386 -315
- package/.npmignore +0 -2
- package/example/async_await_test.js +0 -68
- package/example/google_search_generator.js +0 -50
- package/example/parallel_flows.js +0 -54
- package/firefox/binary.js +0 -344
- package/firefox/extension.js +0 -224
- package/firefox/index.js +0 -626
- package/firefox/profile.js +0 -394
- package/lib/README +0 -5
- package/lib/atoms/getAttribute.js +0 -9
- package/lib/devmode.js +0 -34
- package/lib/events.js +0 -210
- package/lib/firefox/webdriver.json +0 -70
- package/lib/test/build.js +0 -151
- package/lib/test/data/ClickTest_testClicksASurroundingStrongTag.html +0 -11
- package/lib/test/data/Page.aspx +0 -17
- package/lib/test/data/Page.aspx.cs +0 -22
- package/lib/test/data/Redirect.aspx +0 -11
- package/lib/test/data/Redirect.aspx.cs +0 -9
- package/lib/test/data/Settings.StyleCop +0 -759
- package/lib/test/data/Web.Config +0 -59
- package/lib/test/data/actualXhtmlPage.xhtml +0 -14
- package/lib/test/data/ajaxy_page.html +0 -81
- package/lib/test/data/alerts.html +0 -85
- package/lib/test/data/banner.gif +0 -0
- package/lib/test/data/beach.jpg +0 -0
- package/lib/test/data/blank.html +0 -1
- package/lib/test/data/bodyTypingTest.html +0 -41
- package/lib/test/data/booleanAttributes.html +0 -19
- package/lib/test/data/child/childPage.html +0 -8
- package/lib/test/data/child/grandchild/grandchildPage.html +0 -8
- package/lib/test/data/clickEventPage.html +0 -26
- package/lib/test/data/click_frames.html +0 -10
- package/lib/test/data/click_jacker.html +0 -38
- package/lib/test/data/click_out_of_bounds.html +0 -23
- package/lib/test/data/click_out_of_bounds_overflow.html +0 -85
- package/lib/test/data/click_rtl.html +0 -19
- package/lib/test/data/click_source.html +0 -18
- package/lib/test/data/click_tests/click_iframe.html +0 -6
- package/lib/test/data/click_tests/click_in_iframe.html +0 -8
- package/lib/test/data/click_tests/disabled_element.html +0 -12
- package/lib/test/data/click_tests/disappearing_element.html +0 -62
- package/lib/test/data/click_tests/google_map.html +0 -15
- package/lib/test/data/click_tests/google_map.png +0 -0
- package/lib/test/data/click_tests/html5_submit_buttons.html +0 -16
- package/lib/test/data/click_tests/issue5237.html +0 -9
- package/lib/test/data/click_tests/issue5237_frame.html +0 -1
- package/lib/test/data/click_tests/issue5237_target.html +0 -10
- package/lib/test/data/click_tests/link_that_wraps.html +0 -11
- package/lib/test/data/click_tests/mapped_page1.html +0 -9
- package/lib/test/data/click_tests/mapped_page2.html +0 -9
- package/lib/test/data/click_tests/mapped_page3.html +0 -9
- package/lib/test/data/click_tests/overlapping_elements.html +0 -70
- package/lib/test/data/click_tests/partially_overlapping_elements.html +0 -124
- package/lib/test/data/click_tests/span_that_wraps.html +0 -11
- package/lib/test/data/click_tests/submitted_page.html +0 -9
- package/lib/test/data/click_tests/wrapped_overlapping_elements.html +0 -13
- package/lib/test/data/click_too_big.html +0 -10
- package/lib/test/data/click_too_big_in_frame.html +0 -11
- package/lib/test/data/clicks.html +0 -35
- package/lib/test/data/closeable_window.html +0 -8
- package/lib/test/data/cn-test.html +0 -156
- package/lib/test/data/colorPage.html +0 -20
- package/lib/test/data/cookies.html +0 -30
- package/lib/test/data/coordinates_tests/element_in_frame.html +0 -9
- package/lib/test/data/coordinates_tests/element_in_nested_frame.html +0 -9
- package/lib/test/data/coordinates_tests/page_with_element_out_of_view.html +0 -11
- package/lib/test/data/coordinates_tests/page_with_empty_element.html +0 -10
- package/lib/test/data/coordinates_tests/page_with_fixed_element.html +0 -12
- package/lib/test/data/coordinates_tests/page_with_hidden_element.html +0 -10
- package/lib/test/data/coordinates_tests/page_with_invisible_element.html +0 -10
- package/lib/test/data/coordinates_tests/page_with_transparent_element.html +0 -10
- package/lib/test/data/coordinates_tests/simple_page.html +0 -10
- package/lib/test/data/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- package/lib/test/data/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- package/lib/test/data/css/ui-lightness/jquery-ui-1.8.10.custom.css +0 -573
- package/lib/test/data/cssTransform.html +0 -61
- package/lib/test/data/cssTransform2.html +0 -20
- package/lib/test/data/document_write_in_onload.html +0 -13
- package/lib/test/data/dragAndDropInsideScrolledDiv.html +0 -67
- package/lib/test/data/dragAndDropTest.html +0 -102
- package/lib/test/data/dragDropOverflow.html +0 -104
- package/lib/test/data/draggableLists.html +0 -67
- package/lib/test/data/droppableItems.html +0 -65
- package/lib/test/data/dynamic.html +0 -39
- package/lib/test/data/dynamicallyModifiedPage.html +0 -42
- package/lib/test/data/errors.html +0 -15
- package/lib/test/data/firefox/jetpack-sample.xpi +0 -0
- package/lib/test/data/firefox/sample.xpi +0 -0
- package/lib/test/data/firefox/webextension.xpi +0 -0
- package/lib/test/data/fixedFooterNoScroll.html +0 -13
- package/lib/test/data/fixedFooterNoScrollQuirksMode.html +0 -12
- package/lib/test/data/formPage.html +0 -175
- package/lib/test/data/formSelectionPage.html +0 -46
- package/lib/test/data/form_handling_js_submit.html +0 -30
- package/lib/test/data/framePage3.html +0 -7
- package/lib/test/data/frameScrollChild.html +0 -26
- package/lib/test/data/frameScrollPage.html +0 -14
- package/lib/test/data/frameScrollParent.html +0 -11
- package/lib/test/data/frameWithAnimals.html +0 -11
- package/lib/test/data/frame_switching_tests/bug4876.html +0 -9
- package/lib/test/data/frame_switching_tests/bug4876_iframe.html +0 -9
- package/lib/test/data/frame_switching_tests/deletingFrame.html +0 -29
- package/lib/test/data/frame_switching_tests/deletingFrame_iframe.html +0 -8
- package/lib/test/data/frame_switching_tests/deletingFrame_iframe2.html +0 -7
- package/lib/test/data/frameset.html +0 -14
- package/lib/test/data/framesetPage2.html +0 -7
- package/lib/test/data/framesetPage3.html +0 -4
- package/lib/test/data/globalscope.html +0 -15
- package/lib/test/data/hidden.html +0 -5
- package/lib/test/data/hidden_partially.html +0 -45
- package/lib/test/data/html5/blue.jpg +0 -0
- package/lib/test/data/html5/database.js +0 -84
- package/lib/test/data/html5/geolocation.js +0 -18
- package/lib/test/data/html5/green.jpg +0 -0
- package/lib/test/data/html5/red.jpg +0 -0
- package/lib/test/data/html5/status.html +0 -1
- package/lib/test/data/html5/test.appcache +0 -11
- package/lib/test/data/html5/yellow.jpg +0 -0
- package/lib/test/data/html5Page.html +0 -32
- package/lib/test/data/icon.gif +0 -0
- package/lib/test/data/idElements.html +0 -2
- package/lib/test/data/iframeAtBottom.html +0 -15
- package/lib/test/data/iframeWithAlert.html +0 -1
- package/lib/test/data/iframeWithIframe.html +0 -1
- package/lib/test/data/iframes.html +0 -11
- package/lib/test/data/injectableContent.html +0 -22
- package/lib/test/data/javascriptEnhancedForm.html +0 -30
- package/lib/test/data/javascriptPage.html +0 -285
- package/lib/test/data/jquery-1.3.2.js +0 -4376
- package/lib/test/data/js/jquery-1.4.4.min.js +0 -167
- package/lib/test/data/js/jquery-ui-1.8.10.custom.min.js +0 -782
- package/lib/test/data/js/skins/lightgray/content.inline.min.css +0 -1
- package/lib/test/data/js/skins/lightgray/content.min.css +0 -1
- package/lib/test/data/js/skins/lightgray/fonts/readme.md +0 -1
- package/lib/test/data/js/skins/lightgray/fonts/tinymce-small.dev.svg +0 -175
- package/lib/test/data/js/skins/lightgray/fonts/tinymce-small.eot +0 -0
- package/lib/test/data/js/skins/lightgray/fonts/tinymce-small.svg +0 -62
- package/lib/test/data/js/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- package/lib/test/data/js/skins/lightgray/fonts/tinymce-small.woff +0 -0
- package/lib/test/data/js/skins/lightgray/fonts/tinymce.dev.svg +0 -153
- package/lib/test/data/js/skins/lightgray/fonts/tinymce.eot +0 -0
- package/lib/test/data/js/skins/lightgray/fonts/tinymce.svg +0 -63
- package/lib/test/data/js/skins/lightgray/fonts/tinymce.ttf +0 -0
- package/lib/test/data/js/skins/lightgray/fonts/tinymce.woff +0 -0
- package/lib/test/data/js/skins/lightgray/img/anchor.gif +0 -0
- package/lib/test/data/js/skins/lightgray/img/loader.gif +0 -0
- package/lib/test/data/js/skins/lightgray/img/object.gif +0 -0
- package/lib/test/data/js/skins/lightgray/img/trans.gif +0 -0
- package/lib/test/data/js/skins/lightgray/skin.ie7.min.css +0 -1
- package/lib/test/data/js/skins/lightgray/skin.min.css +0 -1
- package/lib/test/data/js/themes/modern/theme.min.js +0 -1
- package/lib/test/data/js/tinymce.min.js +0 -10
- package/lib/test/data/key_logger.html +0 -34
- package/lib/test/data/key_tests/remove_on_keypress.html +0 -36
- package/lib/test/data/keyboard_shortcut.html +0 -36
- package/lib/test/data/linked_image.html +0 -16
- package/lib/test/data/locators_tests/boolean_attribute_selected.html +0 -13
- package/lib/test/data/locators_tests/boolean_attribute_selected_html4.html +0 -13
- package/lib/test/data/longContentPage.html +0 -55
- package/lib/test/data/macbeth.html +0 -5255
- package/lib/test/data/map.png +0 -0
- package/lib/test/data/map_visibility.html +0 -8
- package/lib/test/data/markerTransparent.png +0 -0
- package/lib/test/data/messages.html +0 -15
- package/lib/test/data/meta-redirect.html +0 -11
- package/lib/test/data/missedJsReference.html +0 -11
- package/lib/test/data/modal_dialogs/modal_1.html +0 -21
- package/lib/test/data/modal_dialogs/modal_2.html +0 -21
- package/lib/test/data/modal_dialogs/modal_3.html +0 -15
- package/lib/test/data/modal_dialogs/modalindex.html +0 -21
- package/lib/test/data/mouseOver.html +0 -17
- package/lib/test/data/mousePositionTracker.html +0 -33
- package/lib/test/data/nestedElements.html +0 -164
- package/lib/test/data/overflow/x_auto_y_auto.html +0 -30
- package/lib/test/data/overflow/x_auto_y_hidden.html +0 -30
- package/lib/test/data/overflow/x_auto_y_scroll.html +0 -30
- package/lib/test/data/overflow/x_hidden_y_auto.html +0 -30
- package/lib/test/data/overflow/x_hidden_y_hidden.html +0 -30
- package/lib/test/data/overflow/x_hidden_y_scroll.html +0 -30
- package/lib/test/data/overflow/x_scroll_y_auto.html +0 -30
- package/lib/test/data/overflow/x_scroll_y_hidden.html +0 -30
- package/lib/test/data/overflow/x_scroll_y_scroll.html +0 -30
- package/lib/test/data/overflow-body.html +0 -15
- package/lib/test/data/pageWithOnBeforeUnloadMessage.html +0 -20
- package/lib/test/data/pageWithOnLoad.html +0 -6
- package/lib/test/data/pageWithOnUnload.html +0 -6
- package/lib/test/data/page_with_link_to_slow_loading_page.html +0 -6
- package/lib/test/data/plain.txt +0 -1
- package/lib/test/data/proxy/page1.html +0 -20
- package/lib/test/data/proxy/page2.html +0 -24
- package/lib/test/data/proxy/page3.html +0 -5
- package/lib/test/data/readOnlyPage.html +0 -24
- package/lib/test/data/rectangles.html +0 -40
- package/lib/test/data/resultPage.html +0 -25
- package/lib/test/data/rich_text.html +0 -161
- package/lib/test/data/safari/frames_benchmark.html +0 -31
- package/lib/test/data/screen/screen.css +0 -19
- package/lib/test/data/screen/screen.html +0 -72
- package/lib/test/data/screen/screen.js +0 -7
- package/lib/test/data/screen/screen_frame1.html +0 -72
- package/lib/test/data/screen/screen_frame2.html +0 -72
- package/lib/test/data/screen/screen_frames.html +0 -11
- package/lib/test/data/screen/screen_iframes.html +0 -12
- package/lib/test/data/screen/screen_too_long.html +0 -68
- package/lib/test/data/screen/screen_x_long.html +0 -72
- package/lib/test/data/screen/screen_x_too_long.html +0 -72
- package/lib/test/data/screen/screen_y_long.html +0 -72
- package/lib/test/data/screen/screen_y_too_long.html +0 -72
- package/lib/test/data/scroll.html +0 -27
- package/lib/test/data/scroll2.html +0 -21
- package/lib/test/data/scroll3.html +0 -8
- package/lib/test/data/scroll4.html +0 -7
- package/lib/test/data/scroll5.html +0 -18
- package/lib/test/data/scrolling_tests/frame_with_height_above_200.html +0 -26
- package/lib/test/data/scrolling_tests/frame_with_height_above_2000.html +0 -26
- package/lib/test/data/scrolling_tests/frame_with_nested_scrolling_frame.html +0 -11
- package/lib/test/data/scrolling_tests/frame_with_nested_scrolling_frame_out_of_view.html +0 -12
- package/lib/test/data/scrolling_tests/frame_with_small_height.html +0 -10
- package/lib/test/data/scrolling_tests/page_with_double_overflow_auto.html +0 -19
- package/lib/test/data/scrolling_tests/page_with_frame_out_of_view.html +0 -12
- package/lib/test/data/scrolling_tests/page_with_nested_scrolling_frames.html +0 -11
- package/lib/test/data/scrolling_tests/page_with_nested_scrolling_frames_out_of_view.html +0 -12
- package/lib/test/data/scrolling_tests/page_with_non_scrolling_frame.html +0 -11
- package/lib/test/data/scrolling_tests/page_with_scrolling_frame.html +0 -11
- package/lib/test/data/scrolling_tests/page_with_scrolling_frame_out_of_view.html +0 -12
- package/lib/test/data/scrolling_tests/page_with_tall_frame.html +0 -11
- package/lib/test/data/scrolling_tests/page_with_y_overflow_auto.html +0 -14
- package/lib/test/data/scrolling_tests/target_page.html +0 -9
- package/lib/test/data/selectPage.html +0 -58
- package/lib/test/data/selectableItems.html +0 -65
- package/lib/test/data/sessionCookie.html +0 -21
- package/lib/test/data/sessionCookieDest.html +0 -34
- package/lib/test/data/simple.xml +0 -5
- package/lib/test/data/simpleTest.html +0 -98
- package/lib/test/data/single_text_input.html +0 -12
- package/lib/test/data/slowLoadingAlert.html +0 -10
- package/lib/test/data/slowLoadingResourcePage.html +0 -12
- package/lib/test/data/slow_loading_iframes.html +0 -14
- package/lib/test/data/styledPage.html +0 -28
- package/lib/test/data/svgPiechart.xhtml +0 -81
- package/lib/test/data/svgTest.svg +0 -4
- package/lib/test/data/tables.html +0 -36
- package/lib/test/data/tinymce.html +0 -10
- package/lib/test/data/transformable.xml +0 -11
- package/lib/test/data/transformable.xsl +0 -37
- package/lib/test/data/transparentUpload.html +0 -70
- package/lib/test/data/underscore.html +0 -9
- package/lib/test/data/unicode_ltr.html +0 -8
- package/lib/test/data/upload.html +0 -45
- package/lib/test/data/userDefinedProperty.html +0 -8
- package/lib/test/data/veryLargeCanvas.html +0 -81
- package/lib/test/data/visibility-css.html +0 -21
- package/lib/test/data/win32frameset.html +0 -8
- package/lib/test/data/window_switching_tests/page_with_frame.html +0 -12
- package/lib/test/data/window_switching_tests/simple_page.html +0 -9
- package/lib/test/data/xhtmlFormPage.xhtml +0 -17
- package/lib/test/data/xhtmlTest.html +0 -76
- package/lib/test/fileserver.js +0 -321
- package/lib/test/httpserver.js +0 -120
- package/lib/test/index.js +0 -270
- package/lib/test/promise.js +0 -79
- package/lib/test/resources.js +0 -44
- package/opera.js +0 -405
- package/phantomjs.js +0 -282
- package/test/actions_test.js +0 -52
- package/test/chrome/options_test.js +0 -227
- package/test/chrome/service_test.js +0 -45
- package/test/cookie_test.js +0 -214
- package/test/element_finding_test.js +0 -426
- package/test/execute_script_test.js +0 -350
- package/test/fingerprint_test.js +0 -62
- package/test/firefox/extension_test.js +0 -120
- package/test/firefox/firefox_test.js +0 -261
- package/test/firefox/profile_test.js +0 -140
- package/test/http/http_test.js +0 -223
- package/test/http/util_test.js +0 -178
- package/test/io/io_test.js +0 -360
- package/test/io/zip_test.js +0 -128
- package/test/lib/by_test.js +0 -160
- package/test/lib/capabilities_test.js +0 -111
- package/test/lib/error_test.js +0 -305
- package/test/lib/events_test.js +0 -177
- package/test/lib/http_test.js +0 -696
- package/test/lib/logging_test.js +0 -272
- package/test/lib/promise_aplus_test.js +0 -78
- package/test/lib/promise_error_test.js +0 -884
- package/test/lib/promise_flow_test.js +0 -2288
- package/test/lib/promise_generator_test.js +0 -310
- package/test/lib/promise_test.js +0 -1109
- package/test/lib/testutil.js +0 -90
- package/test/lib/until_test.js +0 -478
- package/test/lib/webdriver_test.js +0 -2311
- package/test/logging_test.js +0 -167
- package/test/net/index_test.js +0 -60
- package/test/net/portprober_test.js +0 -128
- package/test/page_loading_test.js +0 -166
- package/test/phantomjs/execute_phantomjs_test.js +0 -59
- package/test/proxy_test.js +0 -180
- package/test/rect_test.js +0 -60
- package/test/remote_test.js +0 -117
- package/test/safari_test.js +0 -108
- package/test/session_test.js +0 -99
- package/test/stale_element_test.js +0 -63
- package/test/tag_name_test.js +0 -36
- package/test/testing/assert_test.js +0 -373
- package/test/testing/index_test.js +0 -224
- package/test/upload_test.js +0 -86
- package/test/window_test.js +0 -161
- package/testing/assert.js +0 -378
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<html manifest="html5/test.appcache">
|
|
2
|
-
<head>
|
|
3
|
-
<title>HTML5</title>
|
|
4
|
-
</head>
|
|
5
|
-
<body>
|
|
6
|
-
|
|
7
|
-
<h3>Geolocation Test</h3>
|
|
8
|
-
<div id="status">Location unknown</div>
|
|
9
|
-
<script language="javascript" type="text/javascript" src="html5/geolocation.js"></script>
|
|
10
|
-
|
|
11
|
-
<h3>Web SQL Database Test</h3>
|
|
12
|
-
<div id="logs"></div>
|
|
13
|
-
<script language="javascript" type="text/javascript" src="html5/database.js"></script>
|
|
14
|
-
|
|
15
|
-
<h3>Application Cache Test</h3>
|
|
16
|
-
<div id="images">
|
|
17
|
-
<p>Current network status: <span id="state"></span></p>
|
|
18
|
-
<script>
|
|
19
|
-
var state = document.getElementById('state')
|
|
20
|
-
setInterval(function () {
|
|
21
|
-
state.className = navigator.onLine ? 'online' : 'offline';
|
|
22
|
-
state.innerHTML = navigator.onLine ? 'online' : 'offline';
|
|
23
|
-
}, 250);
|
|
24
|
-
</script>
|
|
25
|
-
<img id="red" src="html5/red.jpg">
|
|
26
|
-
<img id="blue" src="html5/blue.jpg">
|
|
27
|
-
<img id="green" src="html5/green.jpg">
|
|
28
|
-
<img id="yellow" src="html5/yellow.jpg">
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
</body>
|
|
32
|
-
</html>
|
package/lib/test/data/icon.gif
DELETED
|
Binary file
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<title>This page has iframes</title>
|
|
4
|
-
</head>
|
|
5
|
-
<body>
|
|
6
|
-
<h1 id="iframe_page_heading">This is the heading</h1>
|
|
7
|
-
|
|
8
|
-
<div style="position: fixed; bottom: 0px; right: 0px; width: 150px; height: 150px;">
|
|
9
|
-
<iframe src="dragAndDropTest.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true" frameborder="1" height="100" scrolling="no" width="100" id="iframe1" name="iframe1-name" />
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
</body>
|
|
13
|
-
</html>
|
|
14
|
-
|
|
15
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<a href="#" id="alertInFrame" onclick="alert('framed cheese');">click me</a>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<iframe src="iframeWithAlert.html" name="iframeWithAlert"></iframe>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<title>This page has iframes</title>
|
|
4
|
-
</head>
|
|
5
|
-
<body>
|
|
6
|
-
<h1 id="iframe_page_heading">This is the heading</h1>
|
|
7
|
-
|
|
8
|
-
<iframe src="formPage.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true"
|
|
9
|
-
frameborder="0" height="600" scrolling="no" width="120" id="iframe1" name="iframe1-name" />
|
|
10
|
-
</body>
|
|
11
|
-
</html>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<html>
|
|
2
|
-
<head>
|
|
3
|
-
<title>random numbers</title>
|
|
4
|
-
<script>
|
|
5
|
-
function display() {
|
|
6
|
-
document.getElementById('numbers').textContent = numbers.join(' ');
|
|
7
|
-
}
|
|
8
|
-
</script>
|
|
9
|
-
</head>
|
|
10
|
-
<body onload="display()">
|
|
11
|
-
<p>Some random numbers between 0 and 100:</p>
|
|
12
|
-
|
|
13
|
-
<!-- Placeholder for the list of random numbers -->
|
|
14
|
-
<p id="numbers"></p>
|
|
15
|
-
<script>
|
|
16
|
-
numbers = [];
|
|
17
|
-
while (numbers.length < 100) {
|
|
18
|
-
numbers.push(Math.round(Math.random() * 100));
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
</body>
|
|
22
|
-
</html>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
2
|
-
|
|
3
|
-
<html>
|
|
4
|
-
<head>
|
|
5
|
-
<title>Javascript Enhanced Page</title>
|
|
6
|
-
</head>
|
|
7
|
-
<body>
|
|
8
|
-
<form id="form1" action="javascriptEnhancedForm.html" method="post">
|
|
9
|
-
<p>
|
|
10
|
-
<label id="labelforusername" for="username">
|
|
11
|
-
Username: <input id="username" type="text" name="username" />
|
|
12
|
-
<script type="text/javascript">
|
|
13
|
-
document.getElementById('username').value = 'Michael';
|
|
14
|
-
</script>
|
|
15
|
-
</label>
|
|
16
|
-
</p>
|
|
17
|
-
<p>
|
|
18
|
-
<label for="password">
|
|
19
|
-
Password: <input id="password" type="password" name="password" />
|
|
20
|
-
<script type="text/javascript">
|
|
21
|
-
var z = document.getElementById('password'); setTimeout('try{z.focus();z.select();} catch(e) {}', 1);
|
|
22
|
-
</script>
|
|
23
|
-
</label>
|
|
24
|
-
</p>
|
|
25
|
-
<p>
|
|
26
|
-
<input type="submit" value="Submit" />
|
|
27
|
-
</p>
|
|
28
|
-
</form>
|
|
29
|
-
</body>
|
|
30
|
-
</html>
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
-
<head>
|
|
5
|
-
<title>Testing Javascript</title>
|
|
6
|
-
<script type="text/javascript">
|
|
7
|
-
var seen = {};
|
|
8
|
-
|
|
9
|
-
function updateContent(input) {
|
|
10
|
-
document.getElementById('resultParagraph').innerHTML = input.value;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function displayMessage(message) {
|
|
14
|
-
document.getElementById('resultParagraph').innerHTML = message;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function appendMessage(message) {
|
|
18
|
-
document.getElementById('resultParagraph').innerHTML += message + " ";
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function register(message) {
|
|
22
|
-
if (!seen[message]) {
|
|
23
|
-
appendMessage(message);
|
|
24
|
-
seen[message] = true;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function delayedShowHide(delay, show) {
|
|
29
|
-
var blackBox = document.getElementById('clickToHide');
|
|
30
|
-
window.setTimeout(function() {
|
|
31
|
-
blackBox.style.display = show ? '' : 'none';
|
|
32
|
-
}, delay);
|
|
33
|
-
}
|
|
34
|
-
</script>
|
|
35
|
-
<script type="text/javascript">
|
|
36
|
-
var startList = function() {
|
|
37
|
-
// Ugh. Let's hope no-one is faking their user agent when running the tests
|
|
38
|
-
if (navigator.userAgent.indexOf("MSIE") != -1) {
|
|
39
|
-
var navRoot = document.getElementById("nav");
|
|
40
|
-
for (var i = 0; i < navRoot.childNodes.length; i++) {
|
|
41
|
-
var node = navRoot.childNodes[i];
|
|
42
|
-
if (node.nodeName == "LI") {
|
|
43
|
-
node.onmouseover = function() {
|
|
44
|
-
this.className += " over";
|
|
45
|
-
};
|
|
46
|
-
node.onmouseout = function() {
|
|
47
|
-
this.className = this.className.replace(" over", "");
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
window.onload=startList;
|
|
54
|
-
</script>
|
|
55
|
-
<style type="text/css">
|
|
56
|
-
#nav {
|
|
57
|
-
padding: 0; margin: 0; list-style: none;
|
|
58
|
-
}
|
|
59
|
-
#nav li {
|
|
60
|
-
float: left; position: relative; width: 10em;
|
|
61
|
-
}
|
|
62
|
-
#nav li ul {
|
|
63
|
-
display: none; position: absolute; top: 1em; left: 0;
|
|
64
|
-
}
|
|
65
|
-
#nav li > ul { top: auto; left: auto; }
|
|
66
|
-
#nav li:hover ul, #nav li.over ul{ display: block; background: white; }
|
|
67
|
-
</style>
|
|
68
|
-
</head>
|
|
69
|
-
<body>
|
|
70
|
-
<h1>Type Stuff</h1>
|
|
71
|
-
|
|
72
|
-
<div>
|
|
73
|
-
<ul id="nav">
|
|
74
|
-
<li id="menu1">Menu 1
|
|
75
|
-
<ul>
|
|
76
|
-
<li id="item1" onclick="displayMessage('item 1');">Item 1</li>
|
|
77
|
-
<li>Item 2</li>
|
|
78
|
-
</ul>
|
|
79
|
-
</li>
|
|
80
|
-
</ul>
|
|
81
|
-
</div>
|
|
82
|
-
|
|
83
|
-
<div id="resultContainer" height="30">
|
|
84
|
-
<div id="result" style="width:300;height:60">
|
|
85
|
-
<p id="resultParagraph"> </p>
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
</div>
|
|
89
|
-
|
|
90
|
-
<div id="formageddon">
|
|
91
|
-
<form action="#">
|
|
92
|
-
Key Up: <input type="text" id="keyUp" onkeyup="javascript:updateContent(this)"/><br/>
|
|
93
|
-
Key Down: <input type="text" id="keyDown" onkeydown="javascript:updateContent(this)"/><br/>
|
|
94
|
-
Key Press: <input type="text" id="keyPress" onkeypress="javascript:updateContent(this)"/><br/>
|
|
95
|
-
Change: <input type="text" id="change" onkeypress="javascript:displayMessage('change')"/><br/>
|
|
96
|
-
<textarea id="keyDownArea" onkeydown="javascript:updateContent(this)" rows="2" cols="15"></textarea>
|
|
97
|
-
<textarea id="keyPressArea" onkeypress="javascript:updateContent(this)" rows="2" cols="15"></textarea>
|
|
98
|
-
<textarea id="keyUpArea" onkeyup="javascript:updateContent(this)" rows="2" cols="15"></textarea>
|
|
99
|
-
<select id="selector" onchange="javascript:updateContent(this)">
|
|
100
|
-
<option value="foo">Foo</option>
|
|
101
|
-
<option value="bar">Bar</option>
|
|
102
|
-
</select>
|
|
103
|
-
<select id="selector2" onclick="javascript:updateContent(this)">
|
|
104
|
-
<option value="foo">Foo</option>
|
|
105
|
-
<option value="bar">Bar</option>
|
|
106
|
-
</select>
|
|
107
|
-
<input type="checkbox" id="checkbox" value="checkbox thing" onchange="javascript:updateContent(this)"/>
|
|
108
|
-
<input id="clickField" type="text" onclick="document.getElementById('clickField').value='Clicked';" value="Hello"/>
|
|
109
|
-
<input id="doubleClickField" type="text" onclick="document.getElementById('doubleClickField').value='Clicked';" ondblclick="document.getElementById('doubleClickField').value='DoubleClicked';" oncontextmenu="document.getElementById('doubleClickField').value='ContextClicked'; return false;" value="DoubleHello"/>
|
|
110
|
-
<input id="clearMe" value="Something" onchange="displayMessage('Cleared')"/>
|
|
111
|
-
</form>
|
|
112
|
-
</div>
|
|
113
|
-
|
|
114
|
-
<div>
|
|
115
|
-
<p><a href="#" onclick="javascript:document.title='Changed'">Change the page title!</a></p>
|
|
116
|
-
|
|
117
|
-
<p><a onclick="javascript:document.title='Changed'" id="nohref">No href</a></p>
|
|
118
|
-
|
|
119
|
-
<p><a id="updatediv" href="#" onclick="javascript:document.getElementById('dynamo').innerHTML = 'Fish and chips!';">Update a
|
|
120
|
-
div</a></p>
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
|
-
<div id="dynamo">What's for dinner?</div>
|
|
124
|
-
|
|
125
|
-
<div id="mousedown" onmousedown="javascript:displayMessage('mouse down');">
|
|
126
|
-
<p>Click for the mouse down event</p>
|
|
127
|
-
<span><p id="child">Here's some text</p></span>
|
|
128
|
-
</div>
|
|
129
|
-
|
|
130
|
-
<div id="mouseup" onmouseup="javascript:displayMessage('mouse up');">
|
|
131
|
-
<p>Click for the mouse up event</p>
|
|
132
|
-
</div>
|
|
133
|
-
|
|
134
|
-
<div id="mouseclick" onclick="javascript:displayMessage('mouse click');">
|
|
135
|
-
<p>Click for the mouse click event</p>
|
|
136
|
-
</div>
|
|
137
|
-
|
|
138
|
-
<div id="error" onclick="document.getElementById('doesnotexist').innerHTML = 'cheese';">
|
|
139
|
-
Clicking this causes a JS exception in the click handler
|
|
140
|
-
</div>
|
|
141
|
-
|
|
142
|
-
<div>
|
|
143
|
-
<form action="resultPage.html" id="on-form">
|
|
144
|
-
<input id="theworks"
|
|
145
|
-
onfocus="appendMessage('focus')"
|
|
146
|
-
onkeydown="appendMessage('keydown')"
|
|
147
|
-
onkeypress="appendMessage('keypress')"
|
|
148
|
-
onkeyup="appendMessage('keyup')"
|
|
149
|
-
onblur="appendMessage('blur')"
|
|
150
|
-
onchange="appendMessage('change')"
|
|
151
|
-
/>
|
|
152
|
-
|
|
153
|
-
<input id="changeable" name="changeable" onfocus="appendMessage('focus')" onchange="appendMessage('change')" onblur="appendMessage('blur')"/>
|
|
154
|
-
|
|
155
|
-
<button type="button" id="plainButton"
|
|
156
|
-
onfocus="appendMessage('focus')"
|
|
157
|
-
onkeydown="appendMessage('keydown')"
|
|
158
|
-
onkeypress="appendMessage('keypress')"
|
|
159
|
-
onkeyup="appendMessage('keyup')"
|
|
160
|
-
onblur="appendMessage('blur')"
|
|
161
|
-
onclick="appendMessage('click')"
|
|
162
|
-
onmousedown="appendMessage('mousedown ')"
|
|
163
|
-
onmouseup="appendMessage('mouseup ')"
|
|
164
|
-
onmouseover="register('mouseover ')"
|
|
165
|
-
onmousemove="register('mousemove ')"
|
|
166
|
-
>
|
|
167
|
-
<b>Go somewhere</b>
|
|
168
|
-
</button>
|
|
169
|
-
<button type="submit" id="submittingButton"><emph>submit</emph></button>
|
|
170
|
-
<button type="button" id="jsSubmitButton" onclick="javascript:document.getElementById('on-form').submit();">Submitomatic</button>
|
|
171
|
-
|
|
172
|
-
<button type="button" id="switchFocus" onclick="document.getElementById('theworks').focus();">Switch focus</button>
|
|
173
|
-
<button type="button" onclick="var element = document.getElementById('switchFocus'); var clickEvent = document.createEvent('MouseEvents'); clickEvent.initMouseEvent('click', true, true, null, 0, 0, 0, 0, 0,false, false, false, false, 0, element);element.dispatchEvent(clickEvent);">Do magic</button><br/>
|
|
174
|
-
<label id="labelForCheckbox" for="labeledCheckbox" onclick="appendMessage('labelclick')">Toggle checkbox</label><input type="checkbox" id="labeledCheckbox" onclick="appendMessage('chboxclick')"/>
|
|
175
|
-
</form>
|
|
176
|
-
|
|
177
|
-
<form action="javascriptPage.html" id="submitListeningForm" onsubmit="appendMessage('form-onsubmit '); return false;">
|
|
178
|
-
<p>
|
|
179
|
-
<input id="submitListeningForm-text" type="text" onsubmit="appendMessage('text-onsubmit ')" onclick="appendMessage('text-onclick ');" />
|
|
180
|
-
<input id="submitListeningForm-submit" type="submit" onsubmit="appendMessage('submit-onsubmit ')" onclick="appendMessage('submit-onclick ');" />
|
|
181
|
-
</p>
|
|
182
|
-
</form>
|
|
183
|
-
</div>
|
|
184
|
-
|
|
185
|
-
<p id="suppressedParagraph" style="display: none">A paragraph suppressed using CSS display=none</p>
|
|
186
|
-
|
|
187
|
-
<div>
|
|
188
|
-
<p id="displayed">Displayed</p>
|
|
189
|
-
|
|
190
|
-
<form action="#"><input type="hidden" name="hidden" /> </form>
|
|
191
|
-
|
|
192
|
-
<p id="none" style="display: none;">Display set to none</p>
|
|
193
|
-
|
|
194
|
-
<p id="hidden" style="visibility: hidden;">Hidden</p>
|
|
195
|
-
|
|
196
|
-
<div id="hiddenparent" style="height: 2em; display: none;">
|
|
197
|
-
<div id="hiddenchild">
|
|
198
|
-
<a href="#" id="hiddenlink">ok</a>
|
|
199
|
-
</div>
|
|
200
|
-
</div>
|
|
201
|
-
|
|
202
|
-
<div style="visibility: hidden;">
|
|
203
|
-
<span>
|
|
204
|
-
<input id="unclickable" />
|
|
205
|
-
<input type="checkbox" id="untogglable" checked="checked" />Check box you can't see
|
|
206
|
-
</span>
|
|
207
|
-
</div>
|
|
208
|
-
|
|
209
|
-
<p id="outer" style="visibility: hidden">A <b id="visibleSubElement" style="visibility: visible">sub-element that is explicitly visible</b> using CSS visibility=visible</p>
|
|
210
|
-
</div>
|
|
211
|
-
|
|
212
|
-
<div>
|
|
213
|
-
<form>
|
|
214
|
-
<input type="text" id="keyReporter" size="80"
|
|
215
|
-
onkeyup="appendMessage('up: ' + event.keyCode)"
|
|
216
|
-
onkeypress="appendMessage('press: ' + event.keyCode)"
|
|
217
|
-
onkeydown="displayMessage(''); appendMessage('down: ' + event.keyCode)" />
|
|
218
|
-
<input name="suppress" onkeydown="if (event.preventDefault) event.preventDefault(); event.returnValue = false; return false;" onkeypress="appendMessage('press');"/>
|
|
219
|
-
</form>
|
|
220
|
-
</div>
|
|
221
|
-
|
|
222
|
-
<!-- Used for testing styles -->
|
|
223
|
-
<div style="background-color: green;" id="green-parent">
|
|
224
|
-
<p id="style1">This should be greenish</p>
|
|
225
|
-
<ul>
|
|
226
|
-
<li id="green-item">So should this</li>
|
|
227
|
-
<li id="red-item" style="background-color: red;">But this is red</li>
|
|
228
|
-
</ul>
|
|
229
|
-
</div>
|
|
230
|
-
|
|
231
|
-
<a href="#" id="close" onclick="window.close();">Close window</a>
|
|
232
|
-
|
|
233
|
-
<div id="delete" onclick="var d = document.getElementById('deleted'); this.removeChild(d);">
|
|
234
|
-
<p id="deleted">I should be deleted when you click my containing div</p>
|
|
235
|
-
<p>Whereas, I should not</p>
|
|
236
|
-
</div>
|
|
237
|
-
|
|
238
|
-
<div>
|
|
239
|
-
<span id="hideMe" onclick="this.style.display = 'none';">Click to hide me.</span>
|
|
240
|
-
</div>
|
|
241
|
-
|
|
242
|
-
<div id="hideOnBlur" tabindex="0"
|
|
243
|
-
style="width: 100px; height: 100px; border: 1px solid red"
|
|
244
|
-
onblur="appendMessage('blur'); this.style.display = 'none';">
|
|
245
|
-
<div id="hideOnBlurChild"
|
|
246
|
-
style="width: 30px; height: 30px; border: 1px solid blue">
|
|
247
|
-
x
|
|
248
|
-
</div>
|
|
249
|
-
Focusable. Will hide when focus is lost.
|
|
250
|
-
</div>
|
|
251
|
-
|
|
252
|
-
<div style="margin-top: 10px;">
|
|
253
|
-
Click actions delayed by 3000ms:
|
|
254
|
-
<div id="clickToShow" onclick="delayedShowHide(3000, true);"
|
|
255
|
-
style="float: left;width: 100px;height:100px;border: 1px solid black;">
|
|
256
|
-
Click to show black box
|
|
257
|
-
</div>
|
|
258
|
-
<div id="clickToHide" onclick="delayedShowHide(3000, false);"
|
|
259
|
-
style="float: left;width: 100px;height:100px;border: 1px solid black;
|
|
260
|
-
background-color: black; color: white; display: none;">
|
|
261
|
-
Click to hide black box
|
|
262
|
-
</div>
|
|
263
|
-
<div style="clear: both"></div>
|
|
264
|
-
</div>
|
|
265
|
-
|
|
266
|
-
<a id="new_window" onmouseup="window.open('closeable_window.html', 'close_me')" href="#">Click me to open a new window</a>
|
|
267
|
-
|
|
268
|
-
<a id="throwing-mouseover" onmouseover="throw new Error()" href="#throwing-mouseover">Mouse over me will throw a JS error</a>
|
|
269
|
-
|
|
270
|
-
<div id="parent">
|
|
271
|
-
<span id="movable" onmouseover="var p = document.getElementById('movable'); displayMessage('parent matches? ' + (p != event.relatedTarget));">
|
|
272
|
-
Click on me to show the related target
|
|
273
|
-
</span>
|
|
274
|
-
</div>
|
|
275
|
-
|
|
276
|
-
<div id="zero" style="width:0;height:0">
|
|
277
|
-
<div>
|
|
278
|
-
<img src="map.png">
|
|
279
|
-
</div>
|
|
280
|
-
</div>
|
|
281
|
-
|
|
282
|
-
</body>
|
|
283
|
-
</html>
|
|
284
|
-
|
|
285
|
-
|